40 #ifndef _INVARIANTMIXEDDISCRETEDISTRIBUTION_H_ 41 #define _INVARIANTMIXEDDISCRETEDISTRIBUTION_H_ 101 std::string
getName()
const {
return "Invariant"; }
162 #endif // _INVARIANTMIXEDDISCRETEDISTRIBUTION_H_ void restrictToConstraint(const Constraint &c)
Restricts the distribution to the domain where the constraint is respected, in addition of other pred...
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution...
virtual double pProb(double x) const =0
Return the cumulative quantile of the continuous version of the distribution, ie .
virtual double Expectation(double a) const =0
Return a primitive function used for the expectation of the continuous version of the distribution...
InvariantMixedDiscreteDistribution * clone() const
Create a copy of this object and send a pointer to it.
Partial implementation of the DiscreteDistribution interface.
InvariantMixedDiscreteDistribution & operator=(const InvariantMixedDiscreteDistribution &imdd)
This class allows to perform a correspondence analysis.
Interface for discrete distribution objects.
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_
void setNumberOfCategories(size_t nbClasses)
std::string getName() const
Get the name of the distribution.
InvariantMixedDiscreteDistribution(const InvariantMixedDiscreteDistribution &imdd)
The parameter list object.
AbstractDiscreteDistribution & operator=(const AbstractDiscreteDistribution &adde)
double qProb(double x) const
Return the quantile of the continuous version of the distribution, ie y such that ...
const DiscreteDistribution * getVariableSubDistribution() const
A partial implementation of the Parametrizable interface.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
void discretize()
Discretizes the distribution in equiprobable classes.
virtual void discretize()=0
Discretizes the distribution in equiprobable classes.
The constraint interface.
virtual double qProb(double x) const =0
Return the quantile of the continuous version of the distribution, ie y such that ...
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
void updateDistribution()
void setMedian(bool median)
Sets the median value to true to say that the value in a class is proportional to the median value of...
virtual void setMedian(bool median)=0
Sets the median value to true to say that the value in a class is proportional to the median value of...
Discrete mixed distribution, with a one-category fixed value (called "invariant") and a user-specifie...
virtual void setNumberOfCategories(size_t nbClasses)=0
sets the number of categories and discretizes if there is a change in this number.
DiscreteDistribution * clone() const =0
Create a copy of this object and send a pointer to it.
std::string nestedPrefix_
virtual ~InvariantMixedDiscreteDistribution()