1 #ifndef POPULATIONDISTRIBUTIONCSV_H
3 #define POPULATIONDISTRIBUTIONCSV_H
36 double pickAge(
bool male)
const;
42 #endif // POPULATIONDISTRIBUTIONCSV_H
Type to return true/false with error description.
Definition: booltype.h:25
PopulationDistributionCSV(GslRandomNumberGenerator *pRndGen)
Constructor of the class, which needs the random number generator to use.
Definition: populationdistributioncsv.cpp:6
double pickAge(bool male) const
This function generates the random age, for either a man or a woman.
Definition: populationdistributioncsv.cpp:57
Helper class to generate random numbers based on some kind of discrete distribution.
Definition: discretedistribution.h:20
This class allows you to pick random ages according to the data loaded from a CSV file...
Definition: populationdistributioncsv.h:17
bool_t load(const std::string &csvFile)
Load the age distribution from the specified file.
Definition: populationdistributioncsv.cpp:17
Base class for picking random numbers according to some kind of age distribution. ...
Definition: populationdistribution.h:13
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
void clear()
Clears the previously loaded data.
Definition: populationdistributioncsv.cpp:46