1 #ifndef DISCRETEDISTRIBUTION_H
3 #define DISCRETEDISTRIBUTION_H
34 std::vector<double> &histValues,
40 std::vector<double> m_histSums;
41 std::vector<double> m_binStarts;
45 #endif // DISCRETEDISTRIBUTION_H
DiscreteDistribution(std::vector< double > &binStarts, std::vector< double > &histValues, GslRandomNumberGenerator *pRndGen)
Constructor of the class.
Definition: discretedistribution.cpp:7
Helper class to generate random numbers based on some kind of discrete distribution.
Definition: discretedistribution.h:20
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
double pickNumber() const
Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistributio...
Definition: discretedistribution.cpp:51
Abstract base class for probability distribution implementations so that they can be used interchange...
Definition: probabilitydistribution.h:15