#include <aims/math/random.h>
|
| | UniformDeviates () |
| | Constructor and destructors.
|
| |
| virtual | ~UniformDeviates () |
| | destructor
|
| |
|
Nombres aleatoires sous forme de classe. F. Poupon le 03/08/2000
|
| T | ran0 (int *idum=NULL) |
| | 'Minimal' random number generator of Park and Miller.
|
| |
| T | ran1 (int *idum=NULL) |
| | 'Minimal' random number generator of Park and Miller with Bays-Durham shuffle and added safeguards.
|
| |
| T | ran2 (int *idum=NULL) |
| | Long period random number generator of L'Ecuyer with Bays-Derham shuffle and added safeguards.
|
| |
| T | ran3 (int *idum=NULL) |
| | Long period random number generator of Knuth.
|
| |
template<class T>
class UniformDeviates< T >
Definition at line 157 of file random.h.
◆ UniformDeviates()
Constructor and destructors.
constructor
Definition at line 164 of file random.h.
◆ ~UniformDeviates()
◆ ran0()
'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
-
| idum | must not be altered between calls for successive deviates in a sequence. |
Definition at line 208 of file random.h.
◆ ran1()
'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()
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()
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: