search for: currentseeds

Displaying 2 results from an estimated 2 matches for "currentseeds".

2012 Jan 13
0
Example of "task seeds" with R parallel. Critique?
...<- projSeeds[[1]][[1]] rnorm(4) x ##Another way (preferred?) to reset stream assign(".Random.seed", projSeeds[[1]][[1]], envir = .GlobalEnv) rnorm(4) ## Now, how to make this more systematic ## Each task needs streamsPerRep seeds ## startSeeds = for each stream, a starting seed ## currentSeeds = for each stream, a seed recording stream's current position ## currentStream = integer indicator of which stream is in use ## Test that interactively currentStream <- 1 currentSeeds <- startSeeds <- projSeeds[[1]] .Random.seed <- startSeeds[[currentStream]] useStream <- func...
2012 Feb 17
3
portable parallel seeds project: request for critiques
...e streams. When we need random draws from a particular stream, we set the variable "currentStream" with the function useStream(). The function initSeedStreams creates several objects in the global environment. It sets the integer currentStream, as well as two list objects, startSeeds and currentSeeds. At the outset of the run, startSeeds and currentSeeds are the same thing. When we change the currentStream to a different stream, the currentSeeds vector is updated to remember where that stream was when we stopped drawing numbers from it. Now, for the proof of concept. A working example. Step...