Isis 3 Developer 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
Definition: GaussianDistribution.h:53
double InverseCumulativeDistribution(const double percent)
Computes and returns the inverse cumulative distribution evaluated at the specified percentage valu...
Definition: GaussianDistribution.cpp:106
~GaussianDistribution()
Definition: GaussianDistribution.h:56
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:107
double CumulativeDistribution(const double value)
Computes and returns the cumulative distribution up to the specified value on the gaussian distributi...
Definition: GaussianDistribution.cpp:64
double Probability(const double value)
Computes and returns the probability of the specified value on the gaussian distribution.
Definition: GaussianDistribution.cpp:50
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
double StandardDeviation() const
Returns the standard deviation.
Definition: GaussianDistribution.h:76
GaussianDistribution(const double mean=0.0, const double standardDeviation=1.0)
Constructs a gaussian distribution object.
Definition: GaussianDistribution.cpp:36
double Mean() const
Returns the mean.
Definition: GaussianDistribution.h:67