Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Sobol Class Reference

#include <Sobol.h>

Inheritance diagram for Sobol:

RandomGenerator List of all members.

Public Member Functions

 Sobol (LongNatural Seed_=0)
 Default constructor.

 ~Sobol ()
void sobseq (Integer *n, Real x[])
LongNatural GetOneRandomInteger ()
 Create one random integer.

Real getUniform ()
 Creates one uniform number on (0.0,1.0).

void SetSeed (LongNatural Seed)
 Set seed for generator.

VeryLongNatural Max ()
 Return maximum number of random numbers.

LongNatural Min ()
 Return minimum of numbers generated.


Private Attributes

LongNatural Seed
Integer n_
Real x_ [MAXDIM+1]

Constructor & Destructor Documentation

Sobol::Sobol LongNatural  Seed_ = 0  ) 
 

Default constructor.

Definition at line 4 of file Sobol.cpp.

References LongNatural, n_, sobseq(), and x_.

Sobol::~Sobol  ) 
 

Definition at line 12 of file Sobol.cpp.


Member Function Documentation

LongNatural Sobol::GetOneRandomInteger  )  [virtual]
 

Create one random integer.

Implements RandomGenerator.

Definition at line 79 of file Sobol.cpp.

References LongNatural.

Real Sobol::getUniform  )  [virtual]
 

Creates one uniform number on (0.0,1.0).

Implements RandomGenerator.

Definition at line 84 of file Sobol.cpp.

References n_, Real, sobseq(), and x_.

VeryLongNatural Sobol::Max  )  [virtual]
 

Return maximum number of random numbers.

Implements RandomGenerator.

Definition at line 71 of file Sobol.cpp.

References VeryLongNatural.

LongNatural Sobol::Min  )  [virtual]
 

Return minimum of numbers generated.

Implements RandomGenerator.

Definition at line 75 of file Sobol.cpp.

References LongNatural.

void Sobol::SetSeed LongNatural  Seed  )  [virtual]
 

Set seed for generator.

Reimplemented from RandomGenerator.

Definition at line 16 of file Sobol.cpp.

References LongNatural, n_, sobseq(), and x_.

void Sobol::sobseq Integer n,
Real  x[]
 

Definition at line 23 of file Sobol.cpp.

References Integer, LongInteger, LongNatural, MAXBIT, Natural, and Real.

Referenced by getUniform(), SetSeed(), and Sobol().


Member Data Documentation

Integer Sobol::n_ [private]
 

Definition at line 38 of file Sobol.h.

Referenced by getUniform(), SetSeed(), and Sobol().

LongNatural Sobol::Seed [private]
 

Reimplemented from RandomGenerator.

Definition at line 37 of file Sobol.h.

Real Sobol::x_[MAXDIM+1] [private]
 

Definition at line 39 of file Sobol.h.

Referenced by getUniform(), SetSeed(), and Sobol().


The documentation for this class was generated from the following files:
Note: Generated nightly - reload for latest version
Generated on Thu Dec 22 23:12:40 2005 for terreneuve by doxygen 1.3.6