SimpleRandomNumberGenerator Class Reference

#include <SimpleRandomNumberGenerator.h>

Collaboration diagram for SimpleRandomNumberGenerator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimpleRandomNumberGenerator ()
double uniformRand ()
double uniformRand (double a, double b)
int uniformRandInt (int a, int b)
double normalRand ()
double normalRand (double mu, double sigma)
void seed (long idum)


Detailed Description

Definition at line 4 of file SimpleRandomNumberGenerator.h.


Constructor & Destructor Documentation

SimpleRandomNumberGenerator::SimpleRandomNumberGenerator (  )  [inline]

Definition at line 8 of file SimpleRandomNumberGenerator.h.


Member Function Documentation

double SimpleRandomNumberGenerator::uniformRand ( void   ) 

Returns a random number from the interval (0,1).

Definition at line 97 of file SimpleRandomNumberGenerator.cpp.

Referenced by normalRand(), uniformRand(), and uniformRandInt().

double SimpleRandomNumberGenerator::uniformRand ( double  a,
double  b 
) [inline]

Definition at line 15 of file SimpleRandomNumberGenerator.h.

References uniformRand().

Here is the call graph for this function:

int SimpleRandomNumberGenerator::uniformRandInt ( int  a,
int  b 
) [inline]

Definition at line 17 of file SimpleRandomNumberGenerator.h.

References uniformRand().

Here is the call graph for this function:

double SimpleRandomNumberGenerator::normalRand ( void   ) 

Gaussion random variable with zero mean and variace 1.0. Taken from Numerical Recipies in C.

Definition at line 103 of file SimpleRandomNumberGenerator.cpp.

References uniformRand().

Referenced by normalRand().

Here is the call graph for this function:

double SimpleRandomNumberGenerator::normalRand ( double  mu,
double  sigma 
) [inline]

Definition at line 20 of file SimpleRandomNumberGenerator.h.

References normalRand().

Here is the call graph for this function:

void SimpleRandomNumberGenerator::seed ( long  idum  ) 

Set the seed of the random number generator.

Definition at line 90 of file SimpleRandomNumberGenerator.cpp.


The documentation for this class was generated from the following files:

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