40 #ifndef _EXPONENTIALDISCRETEDISTRIBUTION_H_ 41 #define _EXPONENTIALDISCRETEDISTRIBUTION_H_ 44 #include "../Constraints.h" 45 #include "../Random/RandomTools.h" 91 std::string
getName()
const {
return(
"Exponential");}
121 #endif //_EXPONENTIALDISCRETEDISTRIBUTION_H_ 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.
ExponentialDiscreteDistribution * clone() const
Create a copy of this object and send a pointer to it.
std::string getName() const
Get the name of the distribution.
Discretized Exponential distribution.
The parameter list object.
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution...
double randC() const
Draw a random number from the continuous version of this distribution, if it exists.
AbstractDiscreteDistribution & operator=(const AbstractDiscreteDistribution &adde)
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
A partial implementation of the Parametrizable interface.
ExponentialDiscreteDistribution(const ExponentialDiscreteDistribution &dist)
ExponentialDiscreteDistribution & operator=(const ExponentialDiscreteDistribution &dist)
~ExponentialDiscreteDistribution()
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
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.
ExponentialDiscreteDistribution(size_t n, double lambda=1.)
Build a new discretized exponential distribution.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.