| util_generate_replicate_seeds | R Documentation |
Derive a reproducible vector of random seeds for replicated model runs
util_generate_replicate_seeds(seed, nreplicates)
seed |
the design seed the replicate seeds are derived from |
nreplicates |
number of replicate seeds to derive |
The derived seeds are a deterministic function of seed and therefore do not need to be
stored: the same seed always yields the same replicate seeds.
Because the seeds are drawn from the head of one stream, the seed vector for a smaller
nreplicates is a prefix of the vector for a larger one.
The random number generator state of the calling environment is saved and restored, so that
deriving replicate seeds does not interfere with the random number stream of the dynamic
simulation designs (genalg and EasyABC draw from it).
numeric vector of length nreplicates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.