<< lowdisc_destroy Sequences lowdisc_new >>

Low Discrepancy >> Low Discrepancy > 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.

For the "faure" sequence (fast Faure sequence), the following field is 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("faure");
lds = lowdisc_configure(lds,"-dimension",4);
// Skip qs^4 - 1 terms, as in TOMS implementation
qs = lowdisc_get ( lds , "-faureprime" );
lds = lowdisc_configure(lds,"-skip", qs^4 - 2);
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
i = lowdisc_get(lds,"-index")
lds = lowdisc_destroy(lds);

Authors


Report an issue
<< lowdisc_destroy Sequences lowdisc_new >>