41 #include "../../Utils/MapTools.h" 54 invariant_(invariant),
56 nestedPrefix_(dist->getNamespace())
89 for (
size_t i = 0; i < distNCat; i++)
121 for (
size_t i = 1; i < distNCat; i++)
void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...
virtual bool matchParametersValues(const ParameterList ¶meters)=0
Update the parameters from parameters.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
double getLowerBound() const
virtual size_t getNumberOfCategories() const =0
Partial implementation of the DiscreteDistribution interface.
This class allows to perform a correspondence analysis.
void setLowerBound(double lowerBound, bool strict)
Interface for discrete distribution objects.
virtual bool strictLowerBound() const
This class is designed to facilitate the manipulation of parameters.
void addParameter_(Parameter *parameter)
InvariantMixedDiscreteDistribution(DiscreteDistribution *dist, double p, double invariant=0.)
Build a new InvariantMixedDiscreteDistribution object.
void setNamespace(const std::string &prefix)
Set the namespace for the parameter names.
DiscreteDistribution * dist_
virtual double getLowerBound() const
methods about the range of the definition
virtual bool isCorrect(double value) const =0
Tell if a given value is correct.
The parameter list object.
virtual Vdouble getCategories() const =0
A partial implementation of the Parametrizable interface.
virtual double getCategory(size_t categoryIndex) const =0
void addParameters_(const ParameterList ¶meters)
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
The constraint interface.
std::map< double, double, Order > distribution_
virtual const ParameterList & getIndependentParameters() const =0
Get the minimal list of parameters to set the model.
virtual double getUpperBound() const
void updateDistribution()
static const IntervalConstraint PROP_CONSTRAINT_IN
void setUpperBound(double upperBound, bool strict)
void setNamespace(const std::string &prefix)
Set the namespace for the parameter names.
virtual double getBound(size_t) const =0
Exception thrown when a value do not match a given constraint.
Parameter & getParameter_(const std::string &name)
virtual void setNamespace(const std::string &prefix)=0
Set the namespace for the parameter names.
double getUpperBound() const
virtual Vdouble getProbabilities() const =0
IntervalConstraint intMinMax_
the interval where the distribution is defined/restricted.
std::string nestedPrefix_
size_t numberOfCategories_
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.
virtual bool strictUpperBound() const
virtual void restrictToConstraint(const Constraint &c)=0
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...
std::vector< double > bounds_