<< lowdisc_destroy Sequences lowdisc_new >>

Low Discrepancy Toolbox >> Low Discrepancy Toolbox > Sequences > lowdisc_get

lowdisc_get

Quiery one not-configurable field.

Calling Sequence

value = lowdisc_get (this,key)

Parameters

this:

the current object

key:

a string. The name of the option to get. The available options are presented below.

value:

the value associated with the key.

Description

Returns the option of the given key. The following keys are available.

Examples

// Faure sequence: get the base associated with current dimension.
// See the -skip option in action in the Faure fast sequence.
lds = lowdisc_new("fauref");
lds = lowdisc_configure(lds,"-dimension",4);
// Skip qs^4 - 1 terms, as in TOMS implementation
qs = lowdisc_get ( lds , "-faurefprime" );
lds = lowdisc_configure(lds,"-skip", qs^4 - 2);
lds
lds = lowdisc_startup (lds);
[lds,computed]=lowdisc_next(lds);
// Terms #1 to #100
[lds,computed]=lowdisc_next(lds,100);
for i = 1:100
mprintf ("%8d %14.6f %14.6f %14.6f %14.6f\n", i , computed(i,1) , computed(i,2) , computed(i,3) , computed(i,4) )
end
lds = lowdisc_destroy(lds);

Authors

<< lowdisc_destroy Sequences lowdisc_new >>