search for: currentstream

Displaying 3 results from an estimated 3 matches for "currentstream".

2012 Jan 13
0
Example of "task seeds" with R parallel. Critique?
...ssign(".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 <- function(n = NULL, origin = FALSE){ if (n > length(currentSeeds)) stop("reque...
2014 Aug 06
3
portableParalleSeeds Package violation, CRAN exception?
...inted out that I had not understood the instructions about packages. Here's the part where the R check gives a Note * checking R code for possible problems ... NOTE Found the following assignments to the global environment: File ?portableParallelSeeds/R/initPortableStreams.R?: assign("currentStream", n, envir = .GlobalEnv) assign("currentStates", curStates, envir = .GlobalEnv) assign("currentStream", 1L, envir = .GlobalEnv) assign("startStates", runSeeds, envir = .GlobalEnv) assign("currentStates", runSeeds, envir = .GlobalEnv) assig...
2012 Feb 17
3
portable parallel seeds project: request for critiques
...two. 2. Inside each run, an initialization function runs that loads the seeds file and takes the row of seeds that it needs. As the simulation progresses, the user can ask for random numbers from the separate 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...