search for: doforeach

Displaying 1 result from an estimated 1 matches for "doforeach".

2013 Jan 23
3
How to construct a valid seed for l'Ecuyer's method with given .Random.seed?
...eed(seed) (from #11) : | Seed[0] >= -930997252, Seed is not set. `---- What's the problem? How can I construct a valid seed for l'Ecuyer's rng with just the information in .Random.seed? Thanks & Cheers, Marius Here is the minimal example: require(doSNOW) require(foreach) doForeach <- function(n, seed=1, type="MPI") { ## create cluster object cl <- snow::makeCluster(parallel::detectCores(), type=type) on.exit(snow::stopCluster(cl)) ## shut down cluster and terminate execution environment registerDoSNOW(cl) ## register the cluster object with fo...