getRNG(setRNG)
getRNG()所属R语言包:setRNG
get the RND and seed from an object
得到的RND和种子的对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Get the random number generator and seed used to generate an object.
获取用于生成对象的随机数发生器和种子。
用法----------Usage----------
getRNG(e=NULL)
## Default S3 method:
getRNG(e=NULL)
参数----------Arguments----------
参数:e
an object generated by simulation (which stored the RNG information).
通过仿真生成的对象(其中存储的的RNG信息)。
Details
详细信息----------Details----------
Extract the RNG information used to generate the object. If e is NULL then getRNG returns the RNG setting, as returned by setRNG(). Otherwise, the default method assumes the object is a list and the RNG information is in the element rng or noise\$rng.
提取用于生成对象的RNG信息。如果e是NULLgetRNG返回RNG设置,返回setRNG()的。“否则,默认的方法假定对象是一个list和RNG信息的是在元素rng或noise\$rng的。
值----------Value----------
The random seed and other random number generation information
随机种子和其他的随机数生成信息
参见----------See Also----------
setRNG, .Random.seed
setRNG,.Random.seed
实例----------Examples----------
## Not run: [#不运行:]
if (require("dse")) {
data("eg1.DSE.data.diff", package="dse")
model <- estVARXls(eg1.DSE.data.diff)
sim <- simulate(model)
getRNG(sim)
}
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|