Methods for Function rstream.incprecision in Package ‘rstream’
方法函数rstream.incprecision在包rstream“
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Get and change the flag for increased precision of an "rstream" object in package rstream.
在包rstream获取和更改的标志增加的精确度一个的“rstream”的对象。
If the increased precision flag is on (TRUE) the "rstream" object returns random numbers with precision close to machine epsilon.
如果增加的精确度标志(TRUE)的“rstream”对象返回的随机数接近机器精度与精度。
Most sources of pseudo random numbers generate random numbers of precision 2^(-32) ~ 2.e-10. When the flag is on the precision is increased to machine epsilon (i.e. ~ 1.e-16) by combining two random numbers of default precision.
大多数来源伪随机数生成的随机数的精度2^(-32) ~ 2.e-10。当该标志为精度增加机器ε(即~ 1.e-16)由两个随机数的缺省精度相结合。
用法----------Usage----------
## S4 method for signature 'rstream'
rstream.incprecision(stream)
rstream.incprecision(stream) <- value
参数----------Arguments----------
参数:stream
an "rstream" object.
的“rstream”对象。
参数:value
a boolean (TRUE or FALSE) to change the status of the flag.
一个布尔值(TRUE或FALSE)来改变状态的标志。
方法----------Methods----------
Methods available for the following "rstream" subclasses: rstream.mrg32k3a.
方法可用于下面的“rstream”子类:rstream.mrg32k3a。
(作者)----------Author(s)----------
Josef Leydold <a href="mailto:josef.leydold@wu.ac.at">josef.leydold@wu.ac.at</a>
参见----------See Also----------
rstream.
rstream。
实例----------Examples----------
## create a new rstream object (of subclass rstream.mrg32k3a)[#创建新rstream对象(子类rstream.mrg32k3a的)]
s <- new("rstream.mrg32k3a")
## set increased precision flag of rstream object[#增加的精确度标志的rstream对象]
rstream.incprecision(s) <- TRUE
## get increased precision flag of rstream object[#增加的精确度标志的rstream对象]
rstream.incprecision(s)