41 #ifndef BPP_NUMERIC_PROB_BETADISCRETEDISTRIBUTION_H
42 #define BPP_NUMERIC_PROB_BETADISCRETEDISTRIBUTION_H
45 #include "../Random/RandomTools.h"
92 std::string
getName()
const {
return "Beta";}
106 double qProb(
double x)
const;
108 double pProb(
double x)
const;
Partial implementation of the DiscreteDistribution interface.
std::shared_ptr< IntervalConstraint > intMinMax_
the interval where the distribution is defined/restricted.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.
Discretized Beta distribution with parameters alpha and beta, on a given interval....
std::string getName() const
Get the name of the distribution.
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
double randC() const
Draw a random number from the continuous version of this distribution, if it exists.
BetaDiscreteDistribution(size_t n, double alpha=1, double beta=1)
Build a new discretized beta distribution.
BetaDiscreteDistribution * clone() const
Create a copy of this object and send a pointer to it.
double qProb(double x) const
Return the quantile of the continuous version of the distribution, ie y such that .
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution,...
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
BetaDiscreteDistribution & operator=(const BetaDiscreteDistribution &)
The parameter list object.