Simpact Cyan
Population based event driven simulation using mNRM
configdistributionhelper.h
Go to the documentation of this file.
1 #ifndef CONFIGDISTRIBUTIONHELPER_H
2 
3 #define CONFIGDISTRIBUTIONHELPER_H
4 
11 #include <string>
12 
13 class ConfigSettings;
14 class ConfigWriter;
16 
74  const std::string &prefix);
75 
76 void addDistributionToConfig(ProbabilityDistribution *pDist, ConfigWriter &config, const std::string &prefix);
77 
78 ProbabilityDistribution2D *getDistribution2DFromConfig(ConfigSettings &config, GslRandomNumberGenerator *pRndGen,
79  const std::string &prefix);
80 
81 void addDistribution2DToConfig(ProbabilityDistribution2D *pDist, ConfigWriter &config, const std::string &prefix);
82 
83 #endif // CONFIGDISTRIBUTIONHELPER_H
Helper class to read configuration settings, more advanced than ConfigReader.
Definition: configsettings.h:21
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
Abstract base class for 2D probability distribution implementations so that they can be used intercha...
Definition: probabilitydistribution2d.h:17
Abstract base class for probability distribution implementations so that they can be used interchange...
Definition: probabilitydistribution.h:15
ProbabilityDistribution * getDistributionFromConfig(ConfigSettings &config, GslRandomNumberGenerator *pRndGen, const std::string &prefix)
This is a helper function to more easily specify a particular 1D probability distribution in a config...