1 #ifndef UNIFORMDISTRIBUTION_H
3 #define UNIFORMDISTRIBUTION_H
22 double getMin()
const {
return m_offset; }
23 double getRange()
const {
return m_range; }
25 double m_range, m_offset;
30 m_range = maxValue-minValue;
37 return x*m_range + m_offset;
40 #endif // UNIFORMDISTRIBUTION_H
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 pickRandomDouble()
Generate a random floating point number in the interval [0,1].
Definition: gslrandomnumbergenerator.cpp:97