41 #ifndef BPP_NUMERIC_PROB_CONSTANTDISTRIBUTION_H
42 #define BPP_NUMERIC_PROB_CONSTANTDISTRIBUTION_H
87 std::string
getName()
const {
return "Constant"; }
Partial implementation of the DiscreteDistribution interface.
Constant discrete distribution.
void discretize()
Discretizes the distribution in equiprobable classes.
double getLowerBound() const
methods about the range of the definition
virtual ~ConstantDistribution()
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
std::string getName() const
Get the name of the distribution.
double qProb(double x) const
Return the quantile of the continuous version of the distribution, ie y such that .
double getUpperBound() const
ConstantDistribution(double value)
Builds a new ConstantDistribution object from a value.
double randC() const
Draw a random number from the continuous version of this distribution, if it exists.
ConstantDistribution & operator=(const ConstantDistribution &)
void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution,...
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
ConstantDistribution * clone() const
Create a copy of this object and send a pointer to it.
The constraint interface.
The parameter list object.