Simpact Cyan
Population based event driven simulation using mNRM
populationdistribution.h
Go to the documentation of this file.
1 #ifndef POPULATIONDISTRIBUTION_H
2 
3 #define POPULATIONDISTRIBUTION_H
4 
9 #include "errut/errorbase.h"
10 
12 
16 {
17 public:
22 
24  virtual double pickAge(bool male) const = 0;
25 protected:
29 private:
30  GslRandomNumberGenerator *m_pRndGen;
31 };
32 
33 #endif // POPULATIONDISTRIBUTION_H
Base class which allows an error message to be set.
Definition: errorbase.h:49
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:15
GslRandomNumberGenerator * getRandomNumberGenerator()
This function can be used to obtain the random number generator specified in the constructor.
Definition: populationdistribution.h:28
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.