40 #ifndef _TRUNCATEDEXPONENTIALDISCRETEDISTRIBUTION_H_ 41 #define _TRUNCATEDEXPONENTIALDISCRETEDISTRIBUTION_H_ 44 #include "../Constraints.h" 45 #include "../Random/RandomTools.h" 111 std::string
getName()
const {
return(
"TruncExponential");}
153 #endif //_TRUNCATEDEXPONENTIALDISCRETEDISTRIBUTION_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.
TruncatedExponentialDiscreteDistribution & operator=(const TruncatedExponentialDiscreteDistribution &dist)
~TruncatedExponentialDiscreteDistribution()
The parameter list object.
AbstractDiscreteDistribution & operator=(const AbstractDiscreteDistribution &adde)
void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...
A partial implementation of the Parametrizable interface.
TruncatedExponentialDiscreteDistribution(const TruncatedExponentialDiscreteDistribution &dist)
TruncatedExponentialDiscreteDistribution(size_t n, double lambda=1., double truncationPoint=10)
Build a new truncated exponential discrete distribution.
The constraint interface.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
std::string getName() const
Get the name of the distribution.
double randC() const
Draw a random number from the continuous version of this distribution, if it exists.
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution...
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
TruncatedExponentialDiscreteDistribution * clone() const
Create a copy of this object and send a pointer to it.
IntervalConstraint intMinMax_
the interval where the distribution is defined/restricted.
Discretized Truncated (on the right) Exponential distribution, where the probabilities are given the ...
double qProb(double x) const
Return the quantile of the continuous version of the distribution, ie y such that ...
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.