Class implements RANLUX RNG. More...

#include <RANLUX.hpp>

Inheritance diagram for julian::RANLUX:
julian::UniformRNG

Public Member Functions

 RANLUX ()
 Constructor. More...
 
 RANLUX (const RANLUX &)
 Copy constructor. More...
 
RANLUXoperator= (RANLUX)
 Copy assignment operator. More...
 
virtual double getRandom ()
 generate one random variable from uniform distribution. More...
 
virtual std::vector< double > getRandoms (int)
 generate one random variable from uniform distribution. More...
 
virtual void setSeed (unsigned int)
 sets seed of RNG More...
 
virtual RANLUXclone () const
 Virtual copy constructor. More...
 
virtual ~RANLUX ()
 destructor More...
 
- Public Member Functions inherited from julian::UniformRNG
virtual ~UniformRNG ()
 destructor More...
 

Private Attributes

gsl_rng * rnd_
 GSL random number generator. More...
 

Detailed Description

Class implements RANLUX RNG.

Class implements RANLUX algorithm of Luscher See [29]

Remarks
Class uses algorithms implemented in GSL

Constructor & Destructor Documentation

julian::RANLUX::RANLUX ( )

Constructor.

in constructor we create the GSL RANLUX algorithm

julian::RANLUX::RANLUX ( const RANLUX orig)

Copy constructor.

One need to explicitly define copy constructor to avoid memory-leak.

julian::RANLUX::~RANLUX ( )
virtual

destructor

One need to explicitly define destructor to avoid memory-leak.

Member Function Documentation

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

Virtual copy constructor.

Method is an implementation of virtual copy constructor.

Reimplemented from julian::UniformRNG.

double julian::RANLUX::getRandom ( )
virtual

generate one random variable from uniform distribution.

Implements julian::UniformRNG.

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

generate one random variable from uniform distribution.

Implements julian::UniformRNG.

RANLUX & julian::RANLUX::operator= ( RANLUX  orig)

Copy assignment operator.

One need to explicitly define Copy constructor to avoid memory-leak.

void julian::RANLUX::setSeed ( unsigned int  seed)
virtual

sets seed of RNG

Implements julian::UniformRNG.

Member Data Documentation

gsl_rng* julian::RANLUX::rnd_
private

GSL random number generator.


The documentation for this class was generated from the following files:
  • C:/Unix/home/OEM/jULIAN/src/mathematics/RNGs/RANLUX.hpp
  • C:/Unix/home/OEM/jULIAN/src/mathematics/RNGs/RANLUX.cpp