MIRA
|
Random generator for drawing samples from univariate or multivariate normal distributions. More...
#include <math/NormalRandomGenerator.h>
Public Types | |
typedef NormalRandomDistribution< D, T > ::result_type | result_type |
Public Member Functions | |
NormalRandomGenerator () | |
result_type | operator() () |
Draws a sample from the random distribution. More... | |
void | seed () |
Seeds the random generator using the current system time. More... | |
void | seed (uint32 value) |
Seeds the random generator with the given seed. More... | |
NormalRandomDistribution< D, T > * | operator-> () |
Provides direct access to the underlying random distribution. More... | |
const NormalRandomDistribution< D, T > * | operator-> () const |
Provides direct access to the underlying random distribution. More... | |
NormalRandomDistribution< D, T > & | distribution () |
Provides direct access to the underlying random distribution. More... | |
const NormalRandomDistribution< D, T > & | distribution () const |
Provides direct access to the underlying random distribution. More... | |
boost::mt19937 & | engine () |
Provides direct access to the underlying random generator engine. More... | |
const boost::mt19937 & | engine () const |
Provides direct access to the underlying random generator engine. More... | |
Random generator for drawing samples from univariate or multivariate normal distributions.
This class template models a zero-mean normal distribution of the specified dimension D (univariate if D==1 or multivariate if D>1).
Example:
To produce non-zero mean samples you can simply add the mean to the returned samples.
|
inherited |
|
inline |
|
inlineinherited |
Draws a sample from the random distribution.
|
inlineinherited |
Seeds the random generator using the current system time.
Hence, after calling this method, the random generator will generate different sequences of random numbers each time.
|
inlineinherited |
Seeds the random generator with the given seed.
The random generator will produce the same sequence of random numbers if the same seed is used.
|
inlineinherited |
Provides direct access to the underlying random distribution.
|
inlineinherited |
Provides direct access to the underlying random distribution.
|
inlineinherited |
Provides direct access to the underlying random distribution.
|
inlineinherited |
Provides direct access to the underlying random distribution.
|
inlineinherited |
Provides direct access to the underlying random generator engine.
|
inlineinherited |
Provides direct access to the underlying random generator engine.