Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Rand Class Reference

#include <Rand.h>

List of all members.

Public Methods

 Rand (int seed=1)
void seed (int seed)
double uniform ()
int discrete (int min, int max)
double gaussian (double sd)

Private Methods

void ranmarin (int ijkl)

Private Attributes

double c
double cd
double cm
double u [97]
int i97
int j97
bool outputReady
double output


Constructor & Destructor Documentation

Rand::Rand int    seed = 1 [inline]
 

Definition at line 16 of file Rand.h.

References BIGPRIME, outputReady, ranmarin, and seed.


Member Function Documentation

int Rand::discrete int    min,
int    max
[inline]
 

Definition at line 50 of file Rand.h.

References uniform.

Referenced by CCommaStrategyOne::Recombination, CCommaStrategyOne::SelectParents, and CClonalCommaES::SelectParents.

double Rand::gaussian double    sd [inline]
 

Definition at line 58 of file Rand.h.

References output, outputReady, and uniform.

Referenced by CVariableStepsizeAnnealMinimizer::GenerateMove, CPeriodicQuenchMinimizer::GenerateMove, CCommaStrategyOne::InitializePopulation, CClonalCommaES::InitializePopulation, CCommaStrategyOne::Mutation, CClonalCommaES::Mutation, CStochasticSensitivityAnalysis::SampleGaussian, and CStochasticSensitivityAnalysis::SampleWithoutExplicitHessian.

void Rand::ranmarin int    ijkl [inline, private]
 

Definition at line 81 of file Rand.h.

References c, cd, cm, i97, j97, and u.

Referenced by Rand, and seed.

void Rand::seed int    seed [inline]
 

Definition at line 28 of file Rand.h.

References BIGPRIME, outputReady, ranmarin, and seed.

Referenced by CContinuousTimeMonteCarloMover::CContinuousTimeMonteCarloMover, Rand, and seed.

double Rand::uniform   [inline]
 

Definition at line 33 of file Rand.h.

References c, cd, cm, i97, j97, and u.

Referenced by CVariableStepsizeAnnealMinimizer::AcceptMove, CStochasticSensitivityAnalysis::AcceptMove, CPeriodicQuenchMinimizer::AcceptMove, discrete, gaussian, CBasicQuenchMinimizer::GenerateMove, CCommaStrategyOne::InitializePopulation, ZeroTAnnealMinimizer::Minimize, CMixedReactionMover::Move, CContinuousTimeMonteCarloMover::Move, and CParameterRandomizer::Randomize.


Member Data Documentation

double Rand::c [private]
 

Definition at line 10 of file Rand.h.

Referenced by ranmarin, and uniform.

double Rand::cd [private]
 

Definition at line 10 of file Rand.h.

Referenced by ranmarin, and uniform.

double Rand::cm [private]
 

Definition at line 10 of file Rand.h.

Referenced by ranmarin, and uniform.

int Rand::i97 [private]
 

Definition at line 11 of file Rand.h.

Referenced by ranmarin, and uniform.

int Rand::j97 [private]
 

Definition at line 11 of file Rand.h.

Referenced by ranmarin, and uniform.

double Rand::output [private]
 

Definition at line 13 of file Rand.h.

Referenced by gaussian.

bool Rand::outputReady [private]
 

Definition at line 12 of file Rand.h.

Referenced by gaussian, Rand, and seed.

double Rand::u[97] [private]
 

Definition at line 10 of file Rand.h.

Referenced by ranmarin, and uniform.


The documentation for this class was generated from the following file:
Generated on Mon Nov 3 10:07:51 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002