42 #include "../../Utils/MapTools.h"
43 #include "../NumConstants.h"
44 #include "../Random/RandomTools.h"
Partial implementation of the DiscreteDistribution interface.
AbstractDiscreteDistribution & operator=(const AbstractDiscreteDistribution &adde)
virtual void discretize()
Discretizes the distribution in equiprobable classes.
void addParameter_(Parameter *parameter)
virtual void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.
Discretized Gaussian distribution.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
virtual ~GaussianDiscreteDistribution()
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 & operator=(const GaussianDiscreteDistribution &)
The parameter list object.
This class is designed to facilitate the manipulation of parameters.
static const std::shared_ptr< IntervalConstraint > R_PLUS_STAR