SimpleRandomNumberGenerator.cpp File Reference

Implementation of some pseudo random number generators. More...

#include "SimpleRandomNumberGenerator.h"
#include <stdlib.h>
#include <math.h>

Include dependency graph for SimpleRandomNumberGenerator.cpp:

Go to the source code of this file.

Defines

#define IM1   2147483563
#define IM2   2147483399
#define AM   (1.0/IM1)
#define IMM1   (IM1-1)
#define IA1   40014
#define IA2   40692
#define IQ1   53668
#define IQ2   52774
#define IR1   12211
#define IR2   3791
#define NDIV   (1+IMM1/NTAB)
#define EPS   1.2e-7
#define NTAB   32
#define RNMX   (1.0-EPS)


Detailed Description

Implementation of some pseudo random number generators.

The core is the function uniform_rand() which is taken from Numerical Recipies in C. It is used to derive the normal distributed generator normrnd().

Definition in file SimpleRandomNumberGenerator.cpp.


Define Documentation

#define AM   (1.0/IM1)

#define EPS   1.2e-7

#define IA1   40014

#define IA2   40692

#define IM1   2147483563

#define IM2   2147483399

#define IMM1   (IM1-1)

#define IQ1   53668

#define IQ2   52774

#define IR1   12211

#define IR2   3791

#define NDIV   (1+IMM1/NTAB)

#define NTAB   32

#define RNMX   (1.0-EPS)


Generated on Wed Jul 9 16:34:45 2008 for PCSIM by  doxygen 1.5.5