#include <phrand.h>
Inheritance diagram for simth::GaussRng:
Public Member Functions | |
GaussRng (double variance) | |
virtual | ~GaussRng () |
double | variance () const |
void | setVariance (double x) |
virtual double | get () const |
double | get_inl () const |
Protected Attributes | |
double | variance_ |
double | stdDev_ |
The probability distribution for Gaussian random variates is
for in the range . Use the transformation on the numbers returned by gsl_ran_gaussian to obtain a Gaussian distribution with mean . This function uses the Box-Mueller algorithm which requires two calls the random number generator r. .
The variance is set by the constructor argument and by the function setVariance(). The used precision in this class is double.
|
Constructor where the argument specifies the variance |
|
|
|
Returns the variance of the distribution. |
|
Sets the variance of the normal distribution. |
|
Returns a random variate from the normal distribution. Implements simth::RandomGenerator. |
|
Non-virtual inline version of get(). |
|
|
|
|