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