DFLib  Release 1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DFLib::Util::gaussian_random_generator Class Reference

#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
 

Detailed Description

Provide a random number generator returning values from a normal distribution of specified mean and standard deviation.

Constructor & Destructor Documentation

DFLib::Util::gaussian_random_generator::gaussian_random_generator ( double  mean,
double  std_dev 
)

Constructor with specified mean and standard deviation.

DFLib::Util::gaussian_random_generator::gaussian_random_generator ( )
inline

Default constructor, mean 0 and standard deviation 1.

Member Function Documentation

double DFLib::Util::gaussian_random_generator::getRandom ( )

Get normally distributed random deviate.

Returns
random value from distribution

Here is the call graph for this function:

Here is the caller graph for this function:

double DFLib::Util::gaussian_random_generator::uniformRandom ( )
private

return double precision uniform deviates.

Returns a random double from a uniform distribution.

Here is the caller graph for this function:

Member Data Documentation

double DFLib::Util::gaussian_random_generator::mean
private
bool DFLib::Util::gaussian_random_generator::seeded
private
double DFLib::Util::gaussian_random_generator::std_dev
private
bool DFLib::Util::gaussian_random_generator::use_last
private
double DFLib::Util::gaussian_random_generator::ysave
private

The documentation for this class was generated from the following files: