9.4. pyopus.misc.sobol — Sobol sequence generator

Inheritance diagram of pyopus.misc.sobol

Sobol sequence generator

Details can be found in

[joekuo1] S. Joe and F. Y. Kuo, Remark on Algorithm 659: Implementing Sobol’s
quasirandom sequence generator, ACM Trans. Math. Softw. 29, 49-57 (2003).
[joekuo2] S. Joe and F. Y. Kuo, Constructing Sobol sequences with better two-dimensional
projections, SIAM J. Sci. Comput. 30, 2635-2654 (2008).

The code is a modification (efficiency reasons) of the code published at http://web.maths.unsw.edu.au/~fkuo/sobol/

class pyopus.misc.sobol.Sobol(dim)

Constructs a Sobol sequence generator with dimension dim. The sequence members are in graycode order.

clone()

Returns a clone of self.

get(n)

Returns n values as rows of a matrix with dim columns.

get_state()

Returns the state of the generator.

reset()

Resets the generator.

set_state(state)

Sets the state of the generator.

skip(n)

Skips n values.

Previous topic

9.3. pyopus.misc.debug — Debug message generation and output

Next topic

9.5. pyopus.misc.halton — Generalized Halton sequence generator

This Page