Isis 3 Programmer Reference
GaussianDistribution.h
Go to the documentation of this file.
1 
23 #ifndef GaussianDistribution_h
24 #define GaussianDistribution_h
25 
26 #include "Statistics.h"
27 #include "IException.h"
28 #include "Constants.h"
29 
30 namespace Isis {
54  public:
55  GaussianDistribution(const double mean = 0.0, const double standardDeviation = 1.0) ;
57 
58  double Probability(const double value);
59  double CumulativeDistribution(const double value);
60  double InverseCumulativeDistribution(const double percent);
61 
67  inline double Mean() const {
68  return p_mean;
69  };
70 
76  inline double StandardDeviation() const {
77  return p_stdev;
78  };
79 
80  private:
82  double p_mean;
84  double p_stdev;
85 
86  // functions used for computing the ICDF
87  double A(const double x);
88  double B(const double x);
89  double C(const double x);
90  double D(const double x);
91  };
92 };
93 
94 #endif
gaussian distribution class
double InverseCumulativeDistribution(const double percent)
Computes and returns the inverse cumulative distribution evaluated at the specified percentage valu...
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:107
double p_stdev
Value of the standard deviation.
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.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
double StandardDeviation() const
Returns the standard deviation.
GaussianDistribution(const double mean=0.0, const double standardDeviation=1.0)
Constructs a gaussian distribution object.
double Mean() const
Returns the mean.
double p_mean
Value of the mean.