pylfi.utils.advance_PRNG_state

pylfi.utils.advance_PRNG_state(seed, delta)[source]

Advance the underlying PRNG as-if delta draws have occurred.

In the ABC samplers, the random values are simulated using a rejection-based method and so, typically, more than one value from the underlying PRNG is required to generate a single posterior draw.

Advancing a PRNG updates the underlying PRNG state as if a number of delta calls to the underlying PRNG have been made.

Parameters
seedSeedSequence

Initial state.

deltaint

Number of draws to advance the PRNG.

Returns
objectPCG64

PRNG advanced delta steps.