Simpact Cyan
Population based event driven simulation using mNRM
fixedvaluedistribution.h
Go to the documentation of this file.
1 #ifndef FIXEDVALUEDISTRIBUTION_H
2 
3 #define FIXEDVALUEDISTRIBUTION_H
4 
10 
15 {
16 public:
19  { m_value = value; }
21 
22  double pickNumber() const { return m_value; }
23  double getValue() const { return m_value; }
24 private:
25  double m_value;
26 };
27 
28 #endif // FIXEDVALUEDISTRIBUTION_H
29 
FixedValueDistribution(double value, GslRandomNumberGenerator *pRndGen)
Constructor of the class, in which the value to be always returned is specified.
Definition: fixedvaluedistribution.h:18
Not actually a distribution, but can be used to force a specific value to be generated every time...
Definition: fixedvaluedistribution.h:14
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16
Abstract base class for probability distribution implementations so that they can be used interchange...
Definition: probabilitydistribution.h:15
double pickNumber() const
Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistributio...
Definition: fixedvaluedistribution.h:22