40 #ifndef _BETADISCRETEDISTRIBUTION_H_ 41 #define _BETADISCRETEDISTRIBUTION_H_ 44 #include "../Random/RandomTools.h" 92 std::string
getName()
const {
return "Beta";}
106 double qProb(
double x)
const;
108 double pProb(
double x)
const;
116 #endif //_BETADISCRETEDISTRIBUTION_H_ double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution...
Partial implementation of the DiscreteDistribution interface.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
BetaDiscreteDistribution * clone() const
Create a copy of this object and send a pointer to it.
This class allows to perform a correspondence analysis.
virtual bool isCorrect(double value) const
Tell if a given value is correct.
BetaDiscreteDistribution & operator=(const BetaDiscreteDistribution &)
Discretized Beta distribution with parameters alpha and beta, on a given interval. On default, the interval is , but it can be restricted.
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 pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
The parameter list object.
double randC() const
Draw a random number from the continuous version of this distribution, if it exists.
BetaDiscreteDistribution(size_t n, double alpha=1, double beta=1)
Build a new discretized beta distribution.
IntervalConstraint intMinMax_
the interval where the distribution is defined/restricted.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.