SimpleRNG is a simple random number generator based on George Marsaglia's MWC (multiply with carry) generator. Although it is very simple, it passes Marsaglia's DIEHARD series of random number generator tests.
More...
SimpleRNG is a simple random number generator based on George Marsaglia's MWC (multiply with carry) generator. Although it is very simple, it passes Marsaglia's DIEHARD series of random number generator tests.
Written by John D. Cook http://www.johndcook.com Converted to C++ by Pietro Incardona
Definition at line 18 of file SimpleRNG.hpp.
#include <SimpleRNG.hpp>
|
unsigned int | m_w |
|
unsigned int | m_z |
|
◆ SimpleRNG()
◆ GetBeta()
double SimpleRNG::GetBeta |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inline |
◆ GetCauchy()
double SimpleRNG::GetCauchy |
( |
double |
median, |
|
|
double |
scale |
|
) |
| |
|
inline |
◆ GetChiSquare()
double SimpleRNG::GetChiSquare |
( |
double |
degreesOfFreedom | ) |
|
|
inline |
◆ GetExponential() [1/2]
double SimpleRNG::GetExponential |
( |
| ) |
|
|
inline |
◆ GetExponential() [2/2]
double SimpleRNG::GetExponential |
( |
double |
mean | ) |
|
|
inline |
◆ GetGamma()
double SimpleRNG::GetGamma |
( |
double |
shape, |
|
|
double |
scale |
|
) |
| |
|
inline |
◆ GetInverseGamma()
double SimpleRNG::GetInverseGamma |
( |
double |
shape, |
|
|
double |
scale |
|
) |
| |
|
inline |
◆ GetLaplace()
double SimpleRNG::GetLaplace |
( |
double |
mean, |
|
|
double |
scale |
|
) |
| |
|
inline |
◆ GetLogNormal()
double SimpleRNG::GetLogNormal |
( |
double |
mu, |
|
|
double |
sigma |
|
) |
| |
|
inline |
◆ GetNormal() [1/2]
double SimpleRNG::GetNormal |
( |
| ) |
|
|
inline |
◆ GetNormal() [2/2]
double SimpleRNG::GetNormal |
( |
double |
mean, |
|
|
double |
standardDeviation |
|
) |
| |
|
inline |
◆ GetStudentT()
double SimpleRNG::GetStudentT |
( |
double |
degreesOfFreedom | ) |
|
|
inline |
◆ GetUint()
unsigned int SimpleRNG::GetUint |
( |
| ) |
|
|
inlineprivate |
◆ GetUniform()
double SimpleRNG::GetUniform |
( |
| ) |
|
|
inline |
◆ GetWeibull()
double SimpleRNG::GetWeibull |
( |
double |
shape, |
|
|
double |
scale |
|
) |
| |
|
inline |
◆ SetSeed() [1/2]
void SimpleRNG::SetSeed |
( |
unsigned int |
u | ) |
|
|
inline |
◆ SetSeed() [2/2]
void SimpleRNG::SetSeed |
( |
unsigned int |
u, |
|
|
unsigned int |
v |
|
) |
| |
|
inline |
◆ SetSeedFromSystemTime()
void SimpleRNG::SetSeedFromSystemTime |
( |
| ) |
|
|
inline |
◆ m_w
unsigned int SimpleRNG::m_w |
|
private |
◆ m_z
unsigned int SimpleRNG::m_z |
|
private |
The documentation for this class was generated from the following file: