julian::UniformRNG Class Referenceabstract

Class implements interface for uniform number generators. More...

#include <uniformRNG.hpp>

Inheritance diagram for julian::UniformRNG:
julian::MersenneTwister julian::RANLUX julian::Tausworthe

Public Member Functions

virtual double getRandom ()=0
 generate one random variable from uniform distribution. More...
 
virtual std::vector< double > getRandoms (int n)=0
 generate n random variables from uniform distribution. More...
 
virtual void setSeed (unsigned int)=0
 sets seed of RNG More...
 
virtual UniformRNGclone () const
 Virtual copy constructor. More...
 
virtual ~UniformRNG ()
 destructor More...
 

Detailed Description

Class implements interface for uniform number generators.

Uniform RNG generates random number from continuous uniform distribution. PDF of continuous uniform distribution is $\phi(x) = 1 $ for $ x \in [0,1) $ and $\phi(x) = 0$ otherwise.

Constructor & Destructor Documentation

virtual julian::UniformRNG::~UniformRNG ( )
inlinevirtual

destructor

Member Function Documentation

virtual UniformRNG* julian::UniformRNG::clone ( ) const
virtual

Virtual copy constructor.

Method is an implementation of virtual copy constructor.

Reimplemented in julian::Tausworthe, julian::RANLUX, and julian::MersenneTwister.

virtual double julian::UniformRNG::getRandom ( )
pure virtual

generate one random variable from uniform distribution.

Implemented in julian::Tausworthe, julian::RANLUX, and julian::MersenneTwister.

virtual std::vector<double> julian::UniformRNG::getRandoms ( int  n)
pure virtual

generate n random variables from uniform distribution.

Implemented in julian::Tausworthe, julian::RANLUX, and julian::MersenneTwister.

virtual void julian::UniformRNG::setSeed ( unsigned  int)
pure virtual

sets seed of RNG

Implemented in julian::Tausworthe, julian::RANLUX, and julian::MersenneTwister.


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