Simpact Cyan
Population based event driven simulation using mNRM
normaldistribution.h
Go to the documentation of this file.
1 #ifndef NORMALDISTRIBUTION_H
2 
3 #define NORMALDISTRIBUTION_H
4 
11 #include <limits>
12 
21 {
22 public:
24  NormalDistribution(double mu, double sigma, GslRandomNumberGenerator *pRng,
25  double minValue = -std::numeric_limits<double>::infinity(),
26  double maxValue = std::numeric_limits<double>::infinity());
27 
28  double pickNumber() const;
29  double getMu() const { return m_mu; }
30  double getSigma() const { return m_sigma; }
31  double getMin() const { return m_minValue; }
32  double getMax() const { return m_maxValue; }
33 private:
34  double m_mu, m_sigma;
35  double m_minValue, m_maxValue;
36 };
37 
38 #endif // NORMALDISTRIBUTION_H
39 
NormalDistribution(double mu, double sigma, GslRandomNumberGenerator *pRng, double minValue=-std::numeric_limits< double >::infinity(), double maxValue=std::numeric_limits< double >::infinity())
The constructor specifies parameters for a log-normal distribution.
Definition: normaldistribution.cpp:4
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
double pickNumber() const
Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistributio...
Definition: normaldistribution.cpp:12
This class allows you to return a random number from a normal distribution with parameters specified ...
Definition: normaldistribution.h:20
Abstract base class for probability distribution implementations so that they can be used interchange...
Definition: probabilitydistribution.h:15