Defines | Functions

Random.cc File Reference

#include <vector>
#include "Random.h"
#include <stdio.h>
Include dependency graph for Random.cc:

Defines

#define TWOPI   (2.0*3.141592653589)
#define N   624
#define M   397
#define MATRIX_A   0x9908b0dfUL
#define UPPER_MASK   0x80000000UL
#define LOWER_MASK   0x7fffffffUL

Functions

int draw_from_distribution (int n, double *dist)
double draw_exponential (double lambda)
double draw_standard_normal ()
double draw_normal (double mu, double sigma)
int draw_poisson (double lambda)
void init_genrand (unsigned long s)
void init_by_array (unsigned long init_key[], int key_length)
unsigned long genrand_int32 ()
long genrand_int31 ()
double genrand_real1 ()
double genrand_real2 ()
double genrand_real3 ()
double genrand_res53 ()

Define Documentation

#define LOWER_MASK   0x7fffffffUL
#define M   397
#define MATRIX_A   0x9908b0dfUL
#define N   624
#define TWOPI   (2.0*3.141592653589)
#define UPPER_MASK   0x80000000UL

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 (  ) 
long genrand_int31 ( void   ) 
unsigned long genrand_int32 ( void   ) 
double genrand_real1 ( void   ) 
double genrand_real2 ( void   ) 
double genrand_real3 ( void   ) 
double genrand_res53 ( void   ) 
void init_by_array ( unsigned long  init_key[],
int  key_length 
)
void init_genrand ( unsigned long  s  ) 
 All Classes Files Functions Variables Typedefs Defines