A.I.M.S algorithms


UniformDeviates< T > Class Template Reference

#include <aims/math/random.h>

Public Member Functions

 UniformDeviates ()
 Constructor and destructors. More...
 
virtual ~UniformDeviates ()
 destructor More...
 
Uniform random numbers

Nombres aleatoires sous forme de classe. F. Poupon le 03/08/2000

ran0 (int *idum=NULL)
 'Minimal' random number generator of Park and Miller. More...
 
ran1 (int *idum=NULL)
 'Minimal' random number generator of Park and Miller with Bays-Durham shuffle and added safeguards. More...
 
ran2 (int *idum=NULL)
 Long period random number generator of L'Ecuyer with Bays-Derham shuffle and added safeguards. More...
 
ran3 (int *idum=NULL)
 Long period random number generator of Knuth. More...
 

Detailed Description

template<class T>
class UniformDeviates< T >

Definition at line 158 of file random.h.

Constructor & Destructor Documentation

template<class T>
UniformDeviates< T >::UniformDeviates ( )
inline

Constructor and destructors.

constructor

Definition at line 165 of file random.h.

template<class T>
virtual UniformDeviates< T >::~UniformDeviates ( )
inlinevirtual

destructor

Definition at line 167 of file random.h.

Member Function Documentation

template<class T >
T UniformDeviates< T >::ran0 ( int *  idum = NULL)
inline

'Minimal' random number generator of Park and Miller.

\ This function is adapted from the Numerical Recipes in C. \ Returns a uniform random deviate between 0.0 and 1.0. Set or reset 'idum' to any integer value to initialize the sequence. \

Parameters
idummust not be altered between calls for successive deviates in a sequence.

Definition at line 209 of file random.h.

template<class T >
T UniformDeviates< T >::ran1 ( int *  idum = NULL)
inline

'Minimal' random number generator of Park and Miller with Bays-Durham shuffle and added safeguards.

\ This function is adapted from the Numerical Recipes in C. \ Returns a uniform random deviate between 0.0 and 1.0 (exclusive of the endpoint values). Call with 'idum' a negative integer to initialize; thereafter, do not alter 'idum' between successive deviates in a sequence.

Definition at line 238 of file random.h.

Referenced by ExponentialDeviates< T >::doit(), and NormalDeviates< T >::doit().

template<class T >
T UniformDeviates< T >::ran2 ( int *  idum = NULL)
inline

Long period random number generator of L'Ecuyer with Bays-Derham shuffle and added safeguards.

\ This function is adapted from the Numerical Recipes in C. \ Returns a uniform random deviate between 0.0 and 1.0 (exclusive of the endpoint values). Call with 'idum' a negative integer to initialize; thereafter, do not alter 'idum' between successive deviates in a sequence.

Definition at line 288 of file random.h.

template<class T >
T UniformDeviates< T >::ran3 ( int *  idum = NULL)
inline

Long period random number generator of Knuth.

\ This function is adapted from the Numerical Recipes in C. \ Returns a uniform random deviate between 0.0 and 1.0. Set 'idum' to any negative value to initialize or reinitialize the sequence.

Definition at line 347 of file random.h.


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