ScrambleMethod property

Class: qrandset

Settings that control scrambling

Description

The ScrambleMethod property contains a structure that defines which scrambles to apply to the sequence. The structure consists of two fields:

  • Type: A string containing the name of the scramble.

  • Options: A cell array of parameter values for the scramble.

Different point sets support different scramble types as outlined in the help for each point set class. An error occurs if you set an invalid scramble type for a given point set.

The ScrambleMethod property also accepts an empty matrix as a value. This will clear all scrambling and set the property to contain a (0x0) structure.

The scramble method provides an alternative, easier way to set scrambles.

Examples

Apply a random linear scramble combined with a random digital shift to a sobolset point set class:

P = sobolset(5);
P = scramble(P, 'MatousekAffineOwen');
P.ScrambleMethod

See Also

|

Was this topic helpful?