1 #ifndef UNIFORMDISTRIBUTION_H
3 #define UNIFORMDISTRIBUTION_H
22 double getMin()
const {
return m_offset; }
23 double getRange()
const {
return m_range; }
24 double getMax()
const {
return m_maxValue; }
26 double m_range, m_offset, m_maxValue;
31 m_range = maxValue-minValue;
33 m_maxValue = maxValue;
39 return x*m_range + m_offset;
42 #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:96