spawn.new.sprng(rsprng)
spawn.new.sprng()所属R语言包:rsprng
Spawn several new random number streams.
滋生出一些新的随机数流。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
spawn.new.sprng generates several new PRNG streams at one pass.
spawn.new.sprng产生一些新的PRNG流一通。
用法----------Usage----------
spawn.new.sprng (nstream, seed = 0, kindprng = "default", para = 0)
参数----------Arguments----------
参数:nstream
number of new streams to spawn
新的数据流,产卵数
参数:seed
an integer of random number seed. It is not the starting state of the sequence; rather, it is an encoding of the starting state. The same seed for all the streams. Distinct streams are returned. Only the 31 least significant bits of seed are used in determining the initial starting state of the stream. Default value is 0 where the default seed for each random number generator is used
的随机数种子的整数。它不是序列的起始状态,相反,它是一种编码的起始状态。同样的种子,为所有的流。返回不同的流。只有31个最显着位种子用于在确定流的最初的起始状态。缺省值是0,其中默认的每个随机数发生器的种子用于
参数:kindprng
a character string of the disired kind of parallel random number generator
一个字符串的disired一种并行随机数发生器
参数:para
additional parameters for the parallel random number generators. If para is 0, default parameters for each PRNG are used. When invalid parameter is given, a warning is issued and the default paramter is used.
并行随机数生成器的附加参数。如果para是0,默认参数为每个PRNG的使用。无效的参数时,发出警告,并且使用默认的参数是通过。
Details
详细信息----------Details----------
Usually one would call init.sprng separately for each process or use spawn.sprng to spawn new streams from current stream. spawn.new.sprng generates new streams unrelated to the current one (might be even of different type). Unlike init.sprng, RNGkind is not called.
一般人会调用“init.sprng分别为每个进程或使用spawn.sprng从当前流中生成新的数据流。 spawn.new.sprng生成无关的当前一个(甚至可能会对不同类型的)的新的数据流。不同init.sprng,RNGkind不叫。
值----------Value----------
Return an integer matrix with nstream columns, each column corresponds to one stream. The number of rows will depend on the type of the PRNG.
返回一个整数矩阵nstream列,每一列对应一个数据流。的行数将取决于类型的PRNG。
(作者)----------Author(s)----------
Na (Michael) Li <a href="mailto:nali@umn.edu">nali@umn.edu</a>
参考文献----------References----------
SPRNG: Scalable Parallel Random Number Generator Library Web Page. http://sprng.cs.fsu.edu/
参见----------See Also----------
pack.sprng, unpack.sprng, spawn.sprng
pack.sprng,unpack.sprng,spawn.sprng
实例----------Examples----------
prngs <- spawn.new.sprng (3, kind = "MLFG")
unpack.sprng (prngs[,2])
RNGkind ("user")
runif (10)
free.sprng ()
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|