Name

lowdisc_startup — Startup the sequence.

Calling Sequence

   this = lowdisc_startup (this)
   
   

Parameters

this:

the current object

Description

This command can only be executed once in the lifetime of the object. This function is sensitive to the "-skip" and "-leap" options.

The mathematical definition of some sequences (e.g. Sobol, Niederreiter, Faure) imply that the first element of the sequence is the zero vector. In this implementation, this zero vector is ignored at startup and all sequences start with a non-zero vector.

Examples

lds = lowdisc_new("halton");
lds = lowdisc_startup (lds);
// Term #1
[lds,computed] = lowdisc_next (lds);
// Term #2
[lds,computed] = lowdisc_next (lds);
lds
lds = lowdisc_destroy(lds);

// See the -skip option in action
lds = lowdisc_new("halton");
lds = lowdisc_configure(lds,"-skip",12);
lds = lowdisc_startup (lds);
// Term #13
[lds,computed] = lowdisc_next (lds);
// Term #14
[lds,computed] = lowdisc_next (lds);
lds
lds = lowdisc_destroy(lds);

   

Authors

Michael Baudin - 2008-2009 - INRIA
Michael Baudin - 2010 - DIGITEO