1 #ifndef FIXEDVALUEDISTRIBUTION_H
3 #define FIXEDVALUEDISTRIBUTION_H
23 double getValue()
const {
return m_value; }
28 #endif // FIXEDVALUEDISTRIBUTION_H
FixedValueDistribution(double value, GslRandomNumberGenerator *pRndGen)
Constructor of the class, in which the value to be always returned is specified.
Definition: fixedvaluedistribution.h:18
Not actually a distribution, but can be used to force a specific value to be generated every time...
Definition: fixedvaluedistribution.h:14
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
Abstract base class for probability distribution implementations so that they can be used interchange...
Definition: probabilitydistribution.h:15
double pickNumber() const
Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistributio...
Definition: fixedvaluedistribution.h:22