5 #ifndef BPP_NUMERIC_PROB_GAUSSIANDISCRETEDISTRIBUTION_H 6 #define BPP_NUMERIC_PROB_GAUSSIANDISCRETEDISTRIBUTION_H 9 #include "../Constraints.h" 10 #include "../Random/RandomTools.h" 48 std::string
getName()
const {
return "Gaussian";}
57 double qProb(
double x)
const;
59 double pProb(
double x)
const;
64 #endif // BPP_NUMERIC_PROB_GAUSSIANDISCRETEDISTRIBUTION_H double qProb(double x) const
Return the quantile of the continuous version of the distribution, ie y such that ...
Partial implementation of the DiscreteDistribution interface.
double randC() const
Draw a random number from the continuous version of this distribution, if it exists.
Discretized Gaussian distribution.
The parameter list object.
virtual ~GaussianDiscreteDistribution()
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
GaussianDiscreteDistribution(size_t n, double mu=0., double sigma=1.)
Build a new discretized normal distribution.
std::string getName() const
Get the name of the distribution.
GaussianDiscreteDistribution & operator=(const GaussianDiscreteDistribution &)
GaussianDiscreteDistribution * clone() const
Create a copy of this object and send a pointer to it.
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution...