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

LDSqFaure Class Reference

Implementation of the Faure low discrepancy sequence, use a linear field c to store the pascal matrix and multiply it on the previous coefficients by matrix-multiplication to get the new coefficients. More...

#include <SimSeqs.h>

Inheritance diagram for LDSqFaure:

Inheritance graph
[legend]
Collaboration diagram for LDSqFaure:

Collaboration graph
[legend]
List of all members.

Public Methods

 LDSqFaure (long *b=NULL, long dm=0, long iterations=0, long genau=0, double genau1=0., long fstp=0, char *ex="fau",char *nm="Faure")

Public Attributes

long fstep

Protected Methods

virtual long CalculateNextElement (long nr, double *buffer, long bufflen)
virtual long InitData (long genau, double genau1)
virtual long ExitData ()
virtual void CreateDirMx (long *cc, long len, long bs)

Protected Attributes

long r
long base
long* c

Detailed Description

Implementation of the Faure low discrepancy sequence, use a linear field c to store the pascal matrix and multiply it on the previous coefficients by matrix-multiplication to get the new coefficients.


Constructor & Destructor Documentation

LDSqFaure::LDSqFaure ( long * b = NULL,
long dm = 0,
long iterations = 0,
long genau = 0,
double genau1 = 0.,
long fstp = 0,
char * ex = "fau",
char * nm = "Faure" )
 


Member Function Documentation

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

Calculates the next element and stores it to the buffer.

If bufflen>dim, the remaining dimensions are pseudo-random numbers (i.e. the sequence is a hybrid sequence) This function should never be called directly! Use NextElement(..) instead!!!

See also:
NextElement()

Reimplemented from LDSqBase.

void LDSqFaure::CreateDirMx ( long * cc,
long len,
long bs ) [protected, virtual]
 

Create the Pascal matrix.

If you want a different uppre triangular matrix, just overload this function in your subclass and create your own direction numbers

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

Do class-specific freeing of memory etc.

Called by the destructor

Reimplemented from LDSqBase.

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

initialize the method specific data.

Reimplemented from LDSqBase.


Member Data Documentation

long LDSqFaure::base [protected]
 

long * LDSqFaure::c [protected]
 

long LDSqFaure::fstep
 

long LDSqFaure::r [protected]
 


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