42 #include "../../Utils/MapTools.h"
43 #include "../Random/RandomTools.h"
59 cond_(1 - exp(-lambda_ * tp_))
Partial implementation of the DiscreteDistribution interface.
virtual void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...
virtual void discretize()
Discretizes the distribution in equiprobable classes.
std::shared_ptr< IntervalConstraint > intMinMax_
the interval where the distribution is defined/restricted.
void addParameter_(Parameter *parameter)
virtual void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.
Parameter & getParameter_(const std::string &name)
The constraint interface.
The parameter list object.
This class is designed to facilitate the manipulation of parameters.
static const std::shared_ptr< IntervalConstraint > R_PLUS
virtual void setConstraint(std::shared_ptr< Constraint > constraint)
Set a constraint to this parameter.
TruncatedExponentialDiscreteDistribution(size_t n, double lambda=1., double truncationPoint=10)
Build a new truncated exponential discrete distribution.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...