Class implements the Gaussian random variable. More...
#include <gaussianRandomVariable.hpp>
Public Member Functions | |
GaussianRandomVariable () | |
constructor More... | |
GaussianRandomVariable (SmartPointer< UniformRNG >) | |
Constructor. More... | |
GaussianRandomVariable (SmartPointer< UniformRNG >, double mean, double stddev) | |
Constructor. More... | |
GaussianRandomVariable (SmartPointer< UniformRNG >, NormalDistribution dist) | |
Constructor. More... | |
double | getRandom () |
Generates random variable. More... | |
std::vector< double > | getRandoms (int) |
Generates set of random variable. More... | |
std::pair< std::vector< double >, std::vector< double > > | getCorrelatedRandoms (int, double) |
Generates correlated normal random numbers. More... | |
void | setSeed (unsigned int) |
Set seed of pseudo-random number generator. More... | |
~GaussianRandomVariable () | |
destructor More... | |
GaussianRandomVariable * | clone () const |
Virtual copy constructor. More... | |
Public Member Functions inherited from julian::RandomVariable | |
virtual | ~RandomVariable () |
Destructor. More... | |
Private Attributes | |
SmartPointer< UniformRNG > | urng_ |
NormalDistribution | dist_ |
Detailed Description
Class implements the Gaussian random variable.
Gaussian Random Variable generates pseudo-random numbers from Gaussian distribution.
Constructor & Destructor Documentation
julian::GaussianRandomVariable::GaussianRandomVariable | ( | ) |
constructor
Tausworthe RNG is set by default. Standard normal distribution is used.
julian::GaussianRandomVariable::GaussianRandomVariable | ( | SmartPointer< UniformRNG > | urng | ) |
Constructor.
Standard normal distribution is used
julian::GaussianRandomVariable::GaussianRandomVariable | ( | SmartPointer< UniformRNG > | urng, |
double | mean, | ||
double | stddev | ||
) |
Constructor.
Creates normal random number using mean and standard deviation provided
julian::GaussianRandomVariable::GaussianRandomVariable | ( | SmartPointer< UniformRNG > | urng, |
NormalDistribution | dist | ||
) |
Constructor.
|
inline |
destructor
Member Function Documentation
|
virtual |
Virtual copy constructor.
Reimplemented from julian::RandomVariable.
std::pair< std::vector< double >, std::vector< double > > julian::GaussianRandomVariable::getCorrelatedRandoms | ( | int | n, |
double | corr | ||
) |
Generates correlated normal random numbers.
|
virtual |
Generates random variable.
Methods uses inverse of CDF to generate random variable from specified distribution (see Chapter 10.4 [1])
Implements julian::RandomVariable.
|
virtual |
Generates set of random variable.
Methods uses inverse of CDF to generate random variable from specified distribution (see Chapter 10.4 [1])
Implements julian::RandomVariable.
|
virtual |
Set seed of pseudo-random number generator.
Implements julian::RandomVariable.
Member Data Documentation
|
private |
Normal distribution
|
private |
Pseudo-random generator used to generate random numbers.
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/mathematics/distributions/gaussianRandomVariable.hpp
- C:/Unix/home/OEM/jULIAN/src/mathematics/distributions/gaussianRandomVariable.cpp