1 #ifndef POPULATIONDISTRIBUTION_H
3 #define POPULATIONDISTRIBUTION_H
22 virtual double pickAge(
bool male)
const = 0;
31 #endif // POPULATIONDISTRIBUTION_H
PopulationDistribution(GslRandomNumberGenerator *pRndGen)
Constructor of the class, in which you need to specify a random number generator which can then be us...
Definition: populationdistribution.cpp:6
Base class for picking random numbers according to some kind of age distribution. ...
Definition: populationdistribution.h:13
GslRandomNumberGenerator * getRandomNumberGenerator()
This function can be used to obtain the random number generator specified in the constructor.
Definition: populationdistribution.h:26
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
virtual double pickAge(bool male) const =0
This function generates the random age, for either a man or a woman.