aimsalgo  5.0.5
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 154 of file random.h.

Constructor & Destructor Documentation

◆ UniformDeviates()

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

Constructor and destructors.

constructor

Definition at line 161 of file random.h.

◆ ~UniformDeviates()

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

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

Referenced by UniformDeviates< T >::~UniformDeviates().

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

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

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

Referenced by UniformDeviates< T >::~UniformDeviates().

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

Referenced by UniformDeviates< T >::~UniformDeviates().


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