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

LDSqMonteCarlo Class Reference

This class implements pseudo-random numbers. More...

#include <SimSeqs.h>

Inheritance diagram for LDSqMonteCarlo:

Inheritance graph
[legend]
Collaboration diagram for LDSqMonteCarlo:

Collaboration graph
[legend]
List of all members.

Public Methods

 LDSqMonteCarlo (long tp=MC1, long status=-44891368, char *ex="mc",char *nm="Monte Carlo")

Protected Methods

virtual long CalculateNextElement (long nr, double *buffer, long bufflen)
virtual long InitData (long genau, double genau1)
virtual long ExitData ()

Detailed Description

This class implements pseudo-random numbers.

To create them it uses either ran1, ran2 or ran3 depending on the value for tp that you pass to the constructor.

Author(s):
Reinhold Kainhofer


Constructor & Destructor Documentation

LDSqMonteCarlo::LDSqMonteCarlo ( long tp = MC1,
long status = -44891368,
char * ex = "mc",
char * nm = "Monte Carlo" )
 

Constructor, initializes the Monte Carlo sequence.

Parameters:
tp   defines whether to use ran1, ran2 or ran3 (use the constants MC1, MC2 and MC3 for this)
status   initial seed for the RNGs


Member Function Documentation

long LDSqMonteCarlo::CalculateNextElement ( long nr,
double * buffer,
long bufflen ) [protected, virtual]
 

Generates an bufflen-dimensional pseudo-random vector and stores it to buffer.

Reimplemented from LDSqBase.

Reimplemented in LDSqAfflerbach.

long LDSqMonteCarlo::ExitData ( ) [protected, virtual]
 

Do class-specific freeing of memory etc.

Called by the destructor

Reimplemented from LDSqBase.

long LDSqMonteCarlo::InitData ( long genau,
double genau1 ) [protected, virtual]
 

initialize the method specific data.

Reimplemented from LDSqBase.


The documentation for this class was generated from the following files:
Generated at Wed Jun 20 19:48:24 2001 for LDSequences by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001