Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages   Examples  

Miscellaneous


Compounds

class  Timer

Functions

void SetGenRand (unsigned long seed)
double GenRand ()
double GenRand (double lo, double hi)
double GaussRand ()
double GaussRand (double mean, double stdev)

Detailed Description

This group contains general-purpose classes and functions (timing class and random number generators).

Function Documentation

double GaussRand ( double mean,
double stdev )
 

Draws one pseudo-random real number (double) from a normal distribution with the mean mean and standard deviation stdev.

Definition at line 127 of file Rnd_no_gen.cpp.

double GaussRand ( )
 

Draws one pseudo-random real number (double) from a normal distribution with mean 0 and standard deviation 1.

Definition at line 105 of file Rnd_no_gen.cpp.

Referenced by GaussRand(), and Noise().

double GenRand ( double lo,
double hi )
 

Draws one pseudo-random real number (double) in the range [lo, hi] from a uniform distribution.

Definition at line 91 of file Rnd_no_gen.cpp.

double GenRand ( )
 

Draws one pseudo-random real number (double) in the range [0, 1] from a uniform distribution.

Definition at line 57 of file Rnd_no_gen.cpp.

Referenced by GaussRand(), GenRand(), and Noise().

void SetGenRand ( unsigned long seed )
 

Sets the seed of the random number generator. SetGenRand(seed) must be called at least once before any other function from this library that generates random numbers.

Definition at line 50 of file Rnd_no_gen.cpp.