GaussianRandomNumberGenerator< T > Class Template Reference

Defines unit variance, zero mean Gaussian random variable template. More...

#include "util/random_number_generator.h"

Inheritance diagram for GaussianRandomNumberGenerator< T >:
Collaboration diagram for GaussianRandomNumberGenerator< T >:

Public Member Functions

 GaussianRandomNumberGenerator (int seed)
 
virtual double rand ()
 Returns a random number.
 

Private Attributes

bool _compute_new
 
double _r1
 
double _r2
 
_rng
 

Detailed Description

template<class T>
class Themis::GaussianRandomNumberGenerator< T >

Takes a unit variat random number generator class as a template argument. Uses the Box-Muller transformation.

Constructor & Destructor Documentation

Constructor for Gassian random number generator, takes an integer seed that specifies the full random sequence.


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