Displaying 1 result from an estimated 1 matches for "streamsperrep".
2012 Jan 13
0
Example of "task seeds" with R parallel. Critique?
...en my
effort to manage seeds and the work of parallel functions that try to
manage seeds for me. That's why I wish I could integrate task-based
seeds into parallel itself.
RNGkind("L'Ecuyer-CMRG")
set.seed(23456)
library(parallel)
## nrep = number of repetitions (or tasks)
## streamsPerRep = number of streams needed by each repetition
nReps <- 2000
streamsPerRep <- 2
## projSeeds=list of lists of stream seeds
projSeeds <- vector(mode="list", nReps)
for (i in 1:nReps) projSeeds[[i]] <- vector(mode="list", streamsPerRep)
runif(1) ##establishes .Random....