42 #include "../../Utils/MapTools.h"
43 #include "../NumConstants.h"
44 #include "../Random/RandomTools.h"
68 addParameter_(
new Parameter(
"Gamma.alpha", alpha, std::make_shared<IntervalConstraint>(1, minimumAlpha,
true)));
69 addParameter_(
new Parameter(
"Gamma.beta", beta, std::make_shared<IntervalConstraint>(1, minimumBeta,
true)));
Partial implementation of the DiscreteDistribution interface.
AbstractDiscreteDistribution & operator=(const AbstractDiscreteDistribution &adde)
virtual void discretize()
Discretizes the distribution in equiprobable classes.
std::shared_ptr< IntervalConstraint > intMinMax_
the interval where the distribution is defined/restricted.
void addParameter_(Parameter *parameter)
virtual void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
bool hasParameter(const std::string &name) const
Tell if there is a parameter with specified name.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.
Discretized Gamma distribution with an offset.
GammaDiscreteDistribution(size_t n, double alpha=1., double beta=1., double minimumAlpha=0.05, double minimumBeta=0.05, bool paramOffset=false, double offset=0)
Build a new discretized gamma distribution.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
GammaDiscreteDistribution & operator=(const GammaDiscreteDistribution &)
double Expectation(double a) const
Return a primitive function used for the expectation of the continuous version of the distribution,...
double pProb(double x) const
Return the cumulative quantile of the continuous version of the distribution, ie .
virtual ~GammaDiscreteDistribution()
double qProb(double x) const
Return the quantile of the continuous version of the distribution, ie y such that .
The parameter list object.
This class is designed to facilitate the manipulation of parameters.