EVOLUTION-MANAGER
Edit File: CreateStream.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Spawn new streams</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for CreateStream {rlecuyer}"><tr><td>CreateStream {rlecuyer}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Spawn new streams</h2> <h3>Description</h3> <p><code>.lec.CreateStream</code> creates new streams of random numbers.</p> <h3>Usage</h3> <pre> .lec.CreateStream (names) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>names</code></td> <td> <p>a character string or a vector of character strings naming the streams to be created. The argument must be provided and the names must be unique within the set of existing streams. If for one <code>i</code> a stream of the name <code>names[i]</code> already exists, its state is replaced by the state of the new created stream.</p> </td></tr> </table> <h3>Details</h3> <p><code>.lec.CreateStream</code> is a wrapper function for the C function <code>RngStream_CreateStream</code> (L'Ecuyer et al, 2002). The state of the created stream returned by the C function is stored in the global object <code>.lec.Random.seed.table</code>. </p> <h3>Value</h3> <p>None.</p> <h3>References</h3> <p>P. L'Ecuyer, R. Simard, E.J.Chen and W.D.Kelton: An Object-Oriented Random-Number Package With Many Long Streams and Substreams; Operations Research, vol. 50, nr. 6, 2002.</p> <h3>Examples</h3> <pre> nstreams <- 10 # number of streams names <- paste("mystream",1:nstreams,sep="") .lec.CreateStream(names) .lec.WriteStateFull(names) </pre> <hr /><div style="text-align: center;">[Package <em>rlecuyer</em> version 0.3-4 <a href="00Index.html">Index</a>]</div> </body></html>