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