Simpact Cyan
Population based event driven simulation using mNRM
|
This class allows you to return a random number from a normal distribution with parameters specified in the constructor. More...
#include <normaldistribution.h>
Public Member Functions | |
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. More... | |
double | pickNumber () const |
Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistribution . More... | |
This class allows you to return a random number from a normal distribution with parameters specified in the constructor.
The probability density is based on the following:
The range is restricted to the specified [min,max] range by using rejection sampling.
NormalDistribution::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.
|
virtual |
Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistribution .
Implements ProbabilityDistribution.