40 #ifndef _GAMMADISCRETEDISTRIBUTION_H_ 41 #define _GAMMADISCRETEDISTRIBUTION_H_ 44 #include "../Constraints.h" 45 #include "../Random/RandomTools.h" 67 std::string
getName()
const {
return(
"Gamma");}
83 GammaDiscreteDistribution(
size_t n,
double alpha = 1.,
double beta = 1.,
double minimumAlpha = 0.05,
double minimumBeta = 0.05);
105 double qProb(
double x)
const;
107 double pProb(
double x)
const;
115 #endif //_GAMMADISCRETEDISTRIBUTION_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.
This class allows to perform a correspondence analysis.
virtual bool isCorrect(double value) const
Tell if a given value is correct.
std::string getName() const
Get the name of the distribution.
GammaDiscreteDistribution(size_t n, double alpha=1., double beta=1., double minimumAlpha=0.05, double minimumBeta=0.05)
Build a new discretized gamma distribution.
GammaDiscreteDistribution * clone() const
Create a copy of this object and send a pointer to it.
virtual ~GammaDiscreteDistribution()
The parameter list object.
GammaDiscreteDistribution & operator=(const GammaDiscreteDistribution &)
double randC() const
Draw a random number from the continuous version of this distribution, if it exists.
Discretized Gamma distribution.
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
double qProb(double x) const
Return the quantile of the continuous version of the distribution, ie y such that ...
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'.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.