#include <GaussianDistribution.hpp>
Inheritance diagram for GaussianDistribution:


A typical way to use this class follows:
// Declare a 'GaussianDistribution' object, with nominal values GaussianDistribution normal; // Declare another, non-nominal 'GaussianDistribution' object. GaussianDistribution gauss(1.341, 0.176); // Print results for several values for(int i = 0; i < 1601; i++) { double x( -8.0 + ( static_cast<double>(i)/100.0 ) ); cout << x << " | " << normal.pdf(x) << " | " << gauss.pdf(x) << " | " << normal.Q(x) << " | " << gauss.Q(x) << endl; }
Definition at line 75 of file GaussianDistribution.hpp.
Public Member Functions | |
| GaussianDistribution () | |
| Default constructor. | |
| GaussianDistribution (double mu, double sig) | |
| Explicit constructor. | |
| virtual double | pdf (double x) |
| Computes the probability density function. | |
| virtual double | cdf (double x) |
| Computes the cumulative distribution function. | |
| virtual double | Q (double x) |
| Computes the upper tail of the Gaussian probability function Q(x). | |
| virtual double | invcdf (double p) throw (InvalidParameter) |
| Computes the quantile function ( cdf^-1() ). | |
| virtual double | getMean (void) const |
| Get mean. | |
| virtual GaussianDistribution & | setMean (double mu) |
| Sets the mean. | |
| virtual double | getSigma (void) const |
| Get standard deviation. | |
| virtual GaussianDistribution & | setSigma (double sig) |
| Sets the standard deviation. | |
| virtual GaussianDistribution & | setParameters (double mu, double sig) |
| Sets all parameters in one pass. | |
|
|
Default constructor. Sets a standard normal distribution: mean = 0.0, and standard deviation = 1.0. Definition at line 44 of file GaussianDistribution.cpp. |
|
||||||||||||
|
Explicit constructor.
Definition at line 61 of file GaussianDistribution.cpp. |
|
|
Computes the cumulative distribution function.
Implements BaseDistribution. Definition at line 89 of file GaussianDistribution.cpp. References gpstk::erf(). |
|
|
Get mean.
Definition at line 131 of file GaussianDistribution.hpp. |
|
|
Get standard deviation.
Definition at line 144 of file GaussianDistribution.hpp. |
|
|
Computes the quantile function ( cdf^-1() ).
Definition at line 106 of file GaussianDistribution.cpp. References GPSTK_THROW, and gpstk::inverf(). |
|
|
Computes the probability density function.
Implements BaseDistribution. Definition at line 76 of file GaussianDistribution.cpp. References gpstk::exp(). |
|
|
Computes the upper tail of the Gaussian probability function Q(x).
Definition at line 116 of file GaussianDistribution.hpp. |
|
|
Sets the mean.
Definition at line 139 of file GaussianDistribution.hpp. |
|
||||||||||||
|
Sets all parameters in one pass.
Definition at line 162 of file GaussianDistribution.cpp. References GaussianDistribution::setSigma(). |
|
|
Sets the standard deviation.
Definition at line 137 of file GaussianDistribution.cpp. Referenced by GaussianDistribution::setParameters(). |
1.3.9.1