rand.seed(rconifers)
rand.seed()所属R语言包:rconifers
Initialize or reset the random number generator for the CONIFERS forest growth model
初始化或重置随机数发生器,为松科植物的森林生长模型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Initialize or reset the random number generator for the CONIFERS forest growth model.
初始化或重置随机数发生器的松科植物森林生长模型。
用法----------Usage----------
rand.seed( control )
参数----------Arguments----------
参数:control
a list of control options. See 'Details'.
控制选项的列表。请参阅“详细信息”。
Details
详细信息----------Details----------
The rand.seed function is used to either initialize or reset the random behavior of the CONIFERS growth model.
rand.seed函数是用来初始化或重置随机行为的松科植物的生长模型。
The 'control' argument is a list that can supply any of the following components:
“控制权”的说法是一个列表,可以提供以下几部分组成:
use.random.error Non-negative integer. If 0, no random error will be applied in the height growth function. If 1, then a random error will
use.random.error非负整数。如果为0,没有随机误差将被应用的高度增长的作用。如果为1,则一个随机误差将
random.seed Non-negative integer. If 0, the random number generator will be seeded with the time. If >0, the random number generator will be seeded with this value. To use random error for each projection, you only need to initialize the random number generator once. If you wish to repeat the randomness, you need to reseed with
random.seed非负整数。如果为0,将被接种的时间随机数发生器。如果> 0时,将随机数发生器接种用此值。每个投影使用随机的错误,你只需要初始化一次的随机数发生器。如果你想重复的随机性,你需要补种
(作者)----------Author(s)----------
Jeff D. Hamann <a href="mailto:jeff.hamann@forestinformatics.com">jeff.hamann@forestinformatics.com</a>,<br>
Martin W. Ritchie <a href="mailto:mritchie@fs.fed.us">mritchie@fs.fed.us</a>
参考文献----------References----------
4.10. See http://www.fs.fed.us/psw/programs/ecology_of_western_forests/projects/conifers/
参见----------See Also----------
calc.max.sdi, impute, plants.smc, plants.swo, plants.swohybrid, plot.sample.data, plots.smc, plots.swo, plots.swohybrid, print.sample.data, project, rand.seed, rconifers, sample.data, set.species.map, set.variant, species.smc, species.swo, species.swohybrid, sp.sums, summary.sample.data, thin, variants
calc.max.sdi,impute,plants.smc,plants.swo,plants.swohybrid,plot.sample.data,plots.smc,plots.swo,plots.swohybrid,print.sample.data,project,rand.seed,rconifers,sample.data,set.species.map,set.variant,species.smc ,species.swo,species.swohybrid,sp.sums,summary.sample.data,thin,variants
实例----------Examples----------
## set the number of digits for the output to five (5)[#设置输出的位数五(5)]
options(digits=5)
library( rconifers )
# turn off the random error component[关闭随机误差分量]
rand.seed( control=list(use.random.error=0 ) )
# reset the random error component and set the seed to 4326[重置随机误差分量和的种子4326]
rand.seed( control=list(use.random.error=1,random.seed=4326 ) )
# reset the random error component and set the seed to a random number between 0 and 10000[重置随机的误差成分,并设置到0和10000之间的随机数的种子]
germ<-sample(1:9999,1)
rand.seed( control=list(use.random.error=1, random.seed=germ) )
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|