1 #ifndef EXPONENTIALDISTRIBUTION_H
3 #define EXPONENTIALDISTRIBUTION_H
24 double getA()
const {
return m_a; }
32 double y = -std::log(z);
38 #endif // EXPONENTIALDISTRIBUTION_H
double pickNumber() const
Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistributio...
Definition: exponentialdistribution.h:29
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
This class allows you to return a random number picked from an exponential distribution with specifie...
Definition: exponentialdistribution.h:17
ExponentialDistribution(double a, GslRandomNumberGenerator *pRng)
The constructor specifies parameters for a gamma distribution.
Definition: exponentialdistribution.h:21
Abstract base class for probability distribution implementations so that they can be used interchange...
Definition: probabilitydistribution.h:15
double pickRandomDouble()
Generate a random floating point number in the interval [0,1].
Definition: gslrandomnumbergenerator.cpp:96