AdvanceState {rlecuyer}R Documentation

Advance the state of a stream

Description

.lec.AdvanceState advances the state of a stream by nn steps (see bellow).

Usage

.lec.AdvanceState (name, e, c)

Arguments

name

name of the stream.

e, c

if e>0e > 0 then n=2e+cn = 2^e + c; if e<0e < 0 then n=2e+cn = -2^{-e} + c; if e=0e = 0 then n=c.n = c.

Details

.lec.AdvanceState is a wrapper function for the C function RngStream_AdvanceState (L'Ecuyer et al, 2002).

Value

None.

References

P. L'Ecuyer, R. Simard, E.J.Chen and W.D.Kelton: An Object-Oriented Random-Number Package With Many Long Streams and Substreams; Operations Research, vol. 50, nr. 6, 2002.


[Package rlecuyer version 0.3-8 Index]