Class implements Normal Distribution. More...
#include <normalDistribution.hpp>
Public Member Functions | |
NormalDistribution (double m, double s) | |
Constructor. More... | |
NormalDistribution * | clone () const |
virtual copy constructor More... | |
~NormalDistribution () | |
destructor More... | |
Probability Distribution Interface | |
double | CDF (double) |
calculates value of Probability Distribution Function More... | |
double | PDF (double) |
calculates value of Probability Distribution Function More... | |
double | invCDF (double) |
calculates quantile More... | |
double | mean () |
returns mean of distribution More... | |
double | variance () |
returns variance of distribution More... | |
void | estimate (std::vector< double >) |
estimates mean and standard deviation using Moment Matching Estimation More... | |
Scale Location Interface | |
double | getLocation () |
returns location parameter More... | |
double | getScale () |
returns scale More... | |
double | getShape () |
returns shape More... | |
void | setLocation (double) |
sets mean (location parameter) More... | |
void | setScale (double) |
sets standard deviation More... | |
void | setShape (double) |
This method does nothing. More... | |
Public Member Functions inherited from julian::ScaleLocationDistribution | |
virtual | ~ScaleLocationDistribution () |
destructor More... | |
Public Member Functions inherited from julian::ProbabilityDistribution | |
virtual | ~ProbabilityDistribution () |
destructor More... | |
Private Attributes | |
double | m_ |
Mean (location parameter) More... | |
double | s_ |
Standard deviation (scale parameter) More... | |
Detailed Description
Class implements Normal Distribution.
Normal distribution is defined by:
1) Cumulative distribution function of normal random variable X
2) Probability distribution function of normal random variable X
3) Parameters
Location
Mean or expectation of the distribution
Scale
Standard deviation of the distribution
- Examples:
- interpolationExample.cpp.
Constructor & Destructor Documentation
julian::NormalDistribution::NormalDistribution | ( | double | m, |
double | s | ||
) |
Constructor.
Constructor requires parametrization of random variables
julian::NormalDistribution::~NormalDistribution | ( | ) |
destructor
Member Function Documentation
|
virtual |
calculates value of Probability Distribution Function
Implements julian::ProbabilityDistribution.
|
virtual |
virtual copy constructor
Reimplemented from julian::ScaleLocationDistribution.
|
virtual |
estimates mean and standard deviation using Moment Matching Estimation
Implements julian::ProbabilityDistribution.
|
virtual |
returns location parameter
Implements julian::ScaleLocationDistribution.
|
virtual |
returns scale
Implements julian::ScaleLocationDistribution.
|
virtual |
returns shape
Method returns nan as the normal distribution is not parametrized with shape parameter
Implements julian::ScaleLocationDistribution.
|
virtual |
calculates quantile
Implements julian::ProbabilityDistribution.
|
virtual |
returns mean of distribution
Implements julian::ProbabilityDistribution.
|
virtual |
calculates value of Probability Distribution Function
Implements julian::ProbabilityDistribution.
- Examples:
- interpolationExample.cpp.
|
virtual |
sets mean (location parameter)
Implements julian::ScaleLocationDistribution.
|
virtual |
sets standard deviation
Implements julian::ScaleLocationDistribution.
|
virtual |
This method does nothing.
normal distribution is not parametrized by shape parameter
Implements julian::ScaleLocationDistribution.
|
virtual |
returns variance of distribution
Implements julian::ProbabilityDistribution.
Member Data Documentation
|
private |
Mean (location parameter)
|
private |
Standard deviation (scale parameter)
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/mathematics/distributions/normalDistribution.hpp
- C:/Unix/home/OEM/jULIAN/src/mathematics/distributions/normalDistribution.cpp