Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

simth::GslRandomWrapper Class Reference

This class wrapps the random genererator of the Gnu Scientific Library. More...

#include <phrand.h>

List of all members.

Public Member Functions

 GslRandomWrapper (const gsl_rng_type &generatorAlgorithm=*gsl_rng_taus)
virtual ~GslRandomWrapper ()
const gsl_rng * rng () const


Detailed Description

This class wrapps the random genererator of the Gnu Scientific Library.

The function gsl_rndGenerator() returns a pointer to a GSL random generator (gsl_rng* ) that can be used to call functions from the GSL. It is seeded by subsequent calls of the system's random number generator rand(), which in turn can be seeded by the user through srand().


Constructor & Destructor Documentation

simth::GslRandomWrapper::GslRandomWrapper const gsl_rng_type &  generatorAlgorithm = *gsl_rng_taus  ) 
 

Constructor that takes as argument the type of the used algortihm to generate the random variables. Default argument is gsl_rng_taus that produces a 'maximally equidistributed combined Tausworthe generator by L'Ecuyer'. (See GSL reference manual for further information).

virtual simth::GslRandomWrapper::~GslRandomWrapper  )  [virtual]
 

Destructor.


Member Function Documentation

const gsl_rng* simth::GslRandomWrapper::rng  )  const [inline]
 

Returns a handle to the gsl (gnu scientific library) random generator.


Generated on Mon Apr 24 21:19:19 2006 for simthetic by  doxygen 1.4.1