Isis 3 Programmer Reference
GaussianDistribution.h
1#ifndef GaussianDistribution_h
2#define GaussianDistribution_h
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include "Statistics.h"
11#include "IException.h"
12#include "Constants.h"
13
14namespace Isis {
38 public:
39 GaussianDistribution(const double mean = 0.0, const double standardDeviation = 1.0) ;
41
42 double Probability(const double value);
43 double CumulativeDistribution(const double value);
44 double InverseCumulativeDistribution(const double percent);
45
51 inline double Mean() const {
52 return p_mean;
53 };
54
60 inline double StandardDeviation() const {
61 return p_stdev;
62 };
63
64 private:
66 double p_mean;
68 double p_stdev;
69
70 // functions used for computing the ICDF
71 double A(const double x);
72 double B(const double x);
73 double C(const double x);
74 double D(const double x);
75 };
76};
77
78#endif
gaussian distribution class
GaussianDistribution(const double mean=0.0, const double standardDeviation=1.0)
Constructs a gaussian distribution object.
double CumulativeDistribution(const double value)
Computes and returns the cumulative distribution up to the specified value on the gaussian distributi...
double Probability(const double value)
Computes and returns the probability of the specified value on the gaussian distribution.
double p_stdev
Value of the standard deviation.
double StandardDeviation() const
Returns the standard deviation.
double InverseCumulativeDistribution(const double percent)
Computes and returns the inverse cumulative distribution evaluated at the specified percentage value ...
double p_mean
Value of the mean.
double Mean() const
Returns the mean.
This class is used to accumulate statistics on double arrays.
Definition Statistics.h:94
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16