94 throw Exception(
"ConstantDistribution::restrictToConstraint: Non-interval exception");
ConstantDistribution & operator=(const ConstantDistribution &)
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
Partial implementation of the DiscreteDistribution interface.
An interval, either bounded or not, which can also have infinite bounds.
This class allows to perform a correspondence analysis.
virtual bool isCorrect(double value) const
Tell if a given value is correct.
IntervalConstraint * clone() const
Create a copy of this object and send a pointer to it.
This class is designed to facilitate the manipulation of parameters.
void addParameter_(Parameter *parameter)
size_t getNumberOfParameters() const
Get the number of parameters.
The parameter list object.
AbstractDiscreteDistribution & operator=(const AbstractDiscreteDistribution &adde)
A partial implementation of the Parametrizable interface.
virtual void setConstraint(Constraint *constraint, bool attach=false)
Set a constraint to this parameter.
The constraint interface.
std::map< double, double, Order > distribution_
ConstantDistribution(double value)
Builds a new ConstantDistribution object from a value.
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
Constant discrete distribution.
Exception thrown when a value do not match a given constraint.
Parameter & getParameter_(const std::string &name)
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
IntervalConstraint intMinMax_
the interval where the distribution is defined/restricted.
void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.
virtual void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...