init {rlecuyer} | R Documentation |
Initialization and Cleaning
Description
Initialize and remove the RNG
Usage
.lec.init()
.lec.exit()
Details
The package uses a global table object .lec.Random.seed.table
to keep information about the current state of the streams. Functions .lec.init
creates this global object and function .lec.exit
deletes it. However, in most cases these two functions will not be needed, as the table is automatically created when the package is loaded and it is deleted when the package is unloaded. If there is however a need to explicitely delete the table of streams and create a new empty one, these two functions can be used for that purpose.
.lec.init
initializes the workspace: removes old and creates new
global object
.lec.Random.seed.table
. It also
allocates memory for the current stream used by
.lec.CurrentStream
.
.lec.exit
removes the global object .lec.Random.seed.table
and
frees memory used for the current stream.