clusterSetRNGSubStream: Set RNG sub-stream for Pierre L'Ecuyer's RngStreams

View source: R/util.R

clusterSetRNGSubStreamR Documentation

Set RNG sub-stream for Pierre L'Ecuyer's RngStreams

Description

Sets the sub-stream RNG state within for Pierre L'Ecuyer's (1999) algorithm. Should be used within distributed array jobs after suitable L'Ecuyer's (1999) have been distributed to each array, and each array is further defined to use multi-core processing. See clusterSetRNGStream for further information.

Usage

clusterSetRNGSubStream(cl, seed)

Arguments

cl

A cluster from the parallel or snow package, or (if NULL) the registered cluster

seed

An integer vector of length 7 as given by .Random.seed when the L'Ecuyer-CMR RNG is in use. SeeRNG for the valid values

Value

invisible NULL


SimDesign documentation built on Sept. 11, 2024, 8 p.m.