set.vector.seed(rngwell19937)
set.vector.seed()所属R语言包:rngwell19937
Seeding the generator with a numeric vector
播种一个数值向量发生器,
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function allows to seed the generator with a numeric vector of an arbitrary length.
该功能允许种子发生器与一个数值向量的任意长度。
用法----------Usage----------
set.vector.seed(seed)
参数----------Arguments----------
参数:seed
A numeric vector, whose components have nonnegative integer values at most 2^32-1.
一个数值向量,其组成部分有非负整数的值2^32-1。
Details
详细信息----------Details----------
Function set.vector.seed() generalizes the initialization "mrg32k5a" for longer seeds.
功能set.vector.seed()推广初始化"mrg32k5a"更长的种子。
The input numbers should have integer values in the interval [0, 2^32 - 1]. They may be represented by numeric data type (double precision floating point numbers). If some of the components of the vector seed is at least 2^31, then the numeric type is necessary,
输入数字应该是整数的值在间隔[0, 2^32 - 1]。他们可能会为代表的数字数据类型(双精度浮点数)。如果一些矢量seed组件是至少2^31,那么数值类型是必要的,
If seed has length 1 and 0 <= seed <= 2^31 - 1, then set.vector.seed(seed) and set.seed(seed) with "mrg32k5a" initialization are equivalent. If seed has length 1 and 2^31 + 1 <= seed <= 2^32 - 1, then set.vector.seed(seed) and set.seed(seed - 2^32) with "mrg32k5a" initialization are equivalent.
如果seed的长度为1 0 <= seed <= 2^31 - 1,那么set.vector.seed(seed)和set.seed(seed)"mrg32k5a"初始化是等价的。如果seed的长度为1 2^31 + 1 <= seed <= 2^32 - 1,那么set.vector.seed(seed)和set.seed(seed - 2^32)"mrg32k5a"初始化是等价的。
Every two different input vectors of length at most 3 produce different initial states of WELL19937a. There is no need to care about a sufficiently random bit pattern of the seed. In particular, the seeds 0, 1, or 2 are not worse than any other seed and produce unrelated sequences.
每两个不同的输入向量的长度最多为3产生不同初始状态WELL19937a。有没有必要关心的种子足够的随机位模式。特别是,种子0,1,或2,没有不如任何其他种子,产生无关的序列。
值----------Value----------
NULL invisibly.
NULL“无形。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|