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

LDSqAtanassov Class Reference

This class implements Atanassov's modified Halton sequence. More...

#include <SimSeqs.h>

Inheritance diagram for LDSqAtanassov:

Inheritance graph
[legend]
Collaboration diagram for LDSqAtanassov:

Collaboration graph
[legend]
List of all members.

Public Methods

 LDSqAtanassov (long *b=NULL, long dm=NULL, long iterations=0, long genau=BGENAU, double genau1=GENAU, char *ex="ata",char *nm="Atanassov", long *prts=NULL, long *mdfs=NULL)

Protected Methods

virtual long CalculateNextElement (long nr, double *buffer, long bufflen)
virtual long InitData (long genau=0, double genau1=0)
virtual long ExitData ()
virtual long* InitGenericBases (long dm)

Protected Attributes

long* factors
long* proots
long* modifiers

Detailed Description

This class implements Atanassov's modified Halton sequence.


Constructor & Destructor Documentation

LDSqAtanassov::LDSqAtanassov ( long * b = NULL,
long dm = NULL,
long iterations = 0,
long genau = BGENAU,
double genau1 = GENAU,
char * ex = "ata",
char * nm = "Atanassov",
long * prts = NULL,
long * mdfs = NULL )
 


Member Function Documentation

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

writes the next element(s) of the sequence in a buffer.

Reimplemented from LDSqBase.

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

Do class-specific freeing of memory etc.

Called by the destructor

Reimplemented from LDSqBase.

long LDSqAtanassov::InitData ( long genau = 0,
double genau1 = 0 ) [protected, virtual]
 

initialize the method specific data.

Reimplemented from LDSqBase.

long * LDSqAtanassov::InitGenericBases ( long dm ) [protected, virtual]
 

If no array of bases was given in the constructor, but the sequence needs them, this creates generic bases, e.g.

most of the time these are the dm lowest prime numbers, but you can override this by reimplementing InitGenericBases in your subclass

Reimplemented from LDSqBase.


Member Data Documentation

long * LDSqAtanassov::factors [protected]
 

stores the factors of Atanassov's definition.

long * LDSqAtanassov::modifiers [protected]
 

stores the modifiers needed in Atanassov's definition.

long * LDSqAtanassov::proots [protected]
 

stores the primitive roots needed to create the sequence.


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