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