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 
10 
14 {
15 public:
19  virtual ~PopulationDistribution();
20 
22  virtual double pickAge(bool male) const = 0;
23 protected:
27 private:
28  GslRandomNumberGenerator *m_pRndGen;
29 };
30 
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.