#include <math.h>
#include <vector>
Go to the source code of this file.
Define Documentation
#define INIT_RANDOM |
( |
|
SEED |
) |
init_genrand(SEED) |
#define IRAND |
( |
|
LOW, |
|
|
|
HIGH | |
|
) |
| | ((int)((LOW)+(int)(((HIGH)-(LOW)+1)*RANDOM()))) |
#define RANDOM |
( |
|
) |
genrand_real2() |
#define URAND |
( |
|
LOW, |
|
|
|
HIGH | |
|
) |
| | ((double)((LOW)+(((HIGH)-(LOW))*RANDOM()))) |
Function Documentation
double draw_exponential |
( |
double |
lambda |
) |
|
int draw_from_distribution |
( |
int |
n, |
|
|
double * |
dist | |
|
) |
| | |
double draw_normal |
( |
double |
mu, |
|
|
double |
sigma | |
|
) |
| | |
int draw_poisson |
( |
double |
lambda |
) |
|
double draw_standard_normal |
( |
|
) |
|
template<typename T >
void FYShuffle |
( |
vector< T > & |
array |
) |
|
void init_genrand |
( |
unsigned long |
s |
) |
|