aimsalgo  5.1.2
Neuroimaging image processing
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 157 of file random.h.

Constructor & Destructor Documentation

◆ UniformDeviates()

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

Constructor and destructors.

constructor

Definition at line 164 of file random.h.

◆ ~UniformDeviates()

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

destructor

Definition at line 166 of file random.h.

Member Function Documentation

◆ ran0()

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 208 of file random.h.

◆ ran1()

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 237 of file random.h.

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

◆ ran2()

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 287 of file random.h.

◆ ran3()

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 346 of file random.h.


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