Description Usage Arguments Value
Importantly, by default this function has the side effect of setting RNG to use rstream with the returned object. This behavior is determined by the set_rng argument. This means the caller doesn't have to worry about doing anything unless (a) it wants to use more than 1 substream or (b) it is going to parallelize or do any RNG in a different R session. Because of strange behavior in the rstream package, this function can be called at most once without the rngstream argument in a given R session.
1 2 | get_rng_substream(rngstream, seed = 4114043, method, region, season,
set_rng = TRUE)
|
rngstream |
(optional) object of class "rstream.mrg32k3a" which will be advanced from its current state. |
seed |
integer seed for rng; the default was randomly generated |
method |
character string specifying prediction method currently one of "sarima", "kcde", or "kde" |
region |
character string specifying region; format "National" or "Region k" for k \in 1, ..., 10 |
season |
character string specifying season predicted, in format "1998/1999" |
set_rng |
boolean should rng be set to use rstream with the returned rngstream object? |
invisible object of class "rstream.mrg32k3a", but advanced to the first substream reserved for the given combination of prediction method, region, and season. The object has been packed via rstream.packed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.