Simpact Cyan
Population based event driven simulation using mNRM
|
Base class for picking random numbers according to some kind of age distribution. More...
#include <populationdistribution.h>
Public Member Functions | |
PopulationDistribution (GslRandomNumberGenerator *pRndGen) | |
Constructor of the class, in which you need to specify a random number generator which can then be used internally. More... | |
virtual double | pickAge (bool male) const =0 |
This function generates the random age, for either a man or a woman. More... | |
Protected Member Functions | |
GslRandomNumberGenerator * | getRandomNumberGenerator () |
This function can be used to obtain the random number generator specified in the constructor. More... | |
Base class for picking random numbers according to some kind of age distribution.
PopulationDistribution::PopulationDistribution | ( | GslRandomNumberGenerator * | pRndGen | ) |
Constructor of the class, in which you need to specify a random number generator which can then be used internally.
|
inlineprotected |
This function can be used to obtain the random number generator specified in the constructor.
|
pure virtual |
This function generates the random age, for either a man or a woman.
Implemented in PopulationDistributionCSV.