|
DFLib
Release 1.0.0
|
#include <gaussian_random.hpp>
Public Member Functions | |
| gaussian_random_generator (double mean, double std_dev) | |
| Constructor with specified mean and standard deviation. More... | |
| gaussian_random_generator () | |
| Default constructor, mean 0 and standard deviation 1. More... | |
| double | getRandom () |
Private Member Functions | |
| double | uniformRandom () |
| return double precision uniform deviates. More... | |
Private Attributes | |
| double | ysave |
| bool | use_last |
| bool | seeded |
| double | mean |
| double | std_dev |
Provide a random number generator returning values from a normal distribution of specified mean and standard deviation.
| DFLib::Util::gaussian_random_generator::gaussian_random_generator | ( | double | mean, |
| double | std_dev | ||
| ) |
Constructor with specified mean and standard deviation.
|
inline |
Default constructor, mean 0 and standard deviation 1.
| double DFLib::Util::gaussian_random_generator::getRandom | ( | ) |
Get normally distributed random deviate.


|
private |
return double precision uniform deviates.
Returns a random double from a uniform distribution.

|
private |
|
private |
|
private |
|
private |
|
private |
1.8.9.1