klMatrix
Macros | Functions | Variables
kl_random_number_generator.cpp File Reference
#include "kl_random_number_generator.h"
Include dependency graph for kl_random_number_generator.cpp:

Macros

#define N   624
 
#define M   397
 
#define MATRIX_A   0x9908b0dfUL /* constant vector a */
 
#define UPPER_MASK   0x80000000UL /* most significant w-r bits */
 
#define LOWER_MASK   0x7fffffffUL /* least significant r bits */
 

Functions

unsigned int hiBit (unsigned int u)
 
unsigned int loBit (unsigned int u)
 
unsigned int loBits (unsigned int u)
 
unsigned int mixBits (unsigned int u, unsigned int v)
 
void init_genrand (unsigned long s)
 
void init_by_array (unsigned long[], unsigned long)
 
unsigned long genrand_int32 (void)
 
double klErrorFunction (double x)
 

Variables

klMersenneTwister globalSeedGenerator (9)
 
const unsigned int stateSize =624
 
const unsigned int M =397
 
const unsigned int K =0x9908B0DFU
 
const unsigned int maxValue = 0xFFFFFFFFU
 
static unsigned long mt [N]
 
static int mti =N+1
 

Macro Definition Documentation

#define LOWER_MASK   0x7fffffffUL /* least significant r bits */
#define M   397
#define MATRIX_A   0x9908b0dfUL /* constant vector a */
#define N   624
#define UPPER_MASK   0x80000000UL /* most significant w-r bits */

Function Documentation

unsigned long genrand_int32 ( void  )

Here is the call graph for this function:

unsigned int hiBit ( unsigned int  u)
inline

Here is the caller graph for this function:

void init_by_array ( unsigned long  init_key[],
unsigned long  key_length 
)

Here is the call graph for this function:

void init_genrand ( unsigned long  s)

Here is the caller graph for this function:

double klErrorFunction ( double  x)

Here is the caller graph for this function:

unsigned int loBit ( unsigned int  u)
inline

Here is the caller graph for this function:

unsigned int loBits ( unsigned int  u)
inline

Here is the caller graph for this function:

unsigned int mixBits ( unsigned int  u,
unsigned int  v 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

klMersenneTwister globalSeedGenerator(9)
const unsigned int K =0x9908B0DFU
const unsigned int M =397
const unsigned int maxValue = 0xFFFFFFFFU
unsigned long mt[N]
static
int mti =N+1
static
const unsigned int stateSize =624