5 #include "../../Utils/MapTools.h" 6 #include "../NumConstants.h" 7 #include "../Random/RandomTools.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.
This class is designed to facilitate the manipulation of parameters.
void addParameter_(Parameter *parameter)
Discretized Gaussian distribution.
double getParameterValue(const std::string &name) const override
Get the value for parameter of name 'name'.
The parameter list object.
virtual void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
AbstractDiscreteDistribution & operator=(const AbstractDiscreteDistribution &adde)
virtual ~GaussianDiscreteDistribution()
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
virtual void discretize()
Discretizes the distribution in equiprobable classes.
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.
GaussianDiscreteDistribution & operator=(const GaussianDiscreteDistribution &)
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution...
static const std::shared_ptr< IntervalConstraint > R_PLUS_STAR