5 #include "../../Utils/MapTools.h" 6 #include "../NumConstants.h" 7 #include "../Random/RandomTools.h" 25 addParameter_(
new Parameter(
"Beta.alpha", alpha, std::make_shared<IntervalConstraint>(
true, 0.0001,
true)));
Partial implementation of the DiscreteDistribution interface.
this static class contains several useful constant values.
BetaDiscreteDistribution(size_t n, double alpha=1, double beta=1, short discretization=DISCRETIZATION_EQUAL_PROB_WHEN_POSSIBLE)
Build a new discretized beta distribution.
double Expectation(double a) const override
Return a primitive function used for the expectation of the continuous version of the distribution...
This class is designed to facilitate the manipulation of parameters.
void addParameter_(Parameter *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.
double getLowerBound() const
methods about the range of the definition
virtual void discretize()
Discretizes the distribution in equiprobable classes.
void fireParameterChanged(const ParameterList ¶meters) override
Notify the class when one or several parameters have changed.
double getUpperBound() const
double qProb(double x) const override
Return the quantile of the continuous version of the distribution, ie y such that ...
double pProb(double x) const override
Return the cumulative quantile of the continuous version of the distribution, ie .