找回密码
 注册
查看: 326|回复: 0

R语言 snow包 snow-rand()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:06:46 | 显示全部楼层 |阅读模式
snow-rand(snow)
snow-rand()所属R语言包:snow

                                        Uniform Random Number Generation in SNOW Clusters
                                         均匀分布的随机数生成SNOW聚类

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Initialize independent uniform random number streams to be used in a SNOW cluster. It uses either the L'Ecuyer's random number generator (package rlecuyer required) or the SPRNG generator (package rsprng required).
初始化a雪景聚类中要使用独立的均匀随机数流。它采用的LEcuyers随机数发生器(需要包rlecuyer)或SPRNG发生器(需要包rsprng)。


用法----------Usage----------


clusterSetupRNG (cl, type = "RNGstream", ...)

clusterSetupRNGstream (cl, seed=rep(12345,6), ...)
clusterSetupSPRNG (cl, seed = round(2^32 * runif(1)),
                   prngkind = "default", para = 0, ...)




参数----------Arguments----------

参数:cl
Cluster object.
聚类对象。


参数:type
type="RNGstream" (default) initializes the L'Ecuyer's RNG.  type="SPRNG" initializes the SPRNG generator.
type="RNGstream"(默认)初始化的LEcuyers RNG。 type="SPRNG"初始化的SPRNG的发电机。


参数:...
Arguments passed to the underlying function (see details bellow).  
传递到底层函数的参数(详见波纹管)。


参数:seed
Integer value (SPRNG) or a vector of six integer values (RNGstream) used as seed for the RNG.
整数的值(SPRNG)或6的的整数值(RNGstream)作为种子的RNG的向量。


参数:prngkind
Character string naming generator type used with SPRNG.
字符串命名发电机使用与SPRNG。


参数:para
Additional parameters for the generator.
发电机的附加参数。


Details

详细信息----------Details----------

clusterSetupRNG calls (subject to its argument values) one of the other functions, passing arguments (cl, ...).  If the "SPRNG" type is used, then the function clusterSetupSPRNG is called.  If the "RNGstream" type is used, then the function clusterSetupRNGstream is called.
clusterSetupRNG调用(它的参数值)的其他功能,传递参数(cl, ...)。如果的“SPRNG的”类型,则该函数clusterSetupSPRNG被调用。如果的“RNGstream的”类型,则该函数clusterSetupRNGstream被调用。

clusterSetupSPRNG loads the rsprng package and initializes separate streams  on each node. For further details see the documentation of init.sprng.  The generator on the master is not affected.
clusterSetupSPRNGrsprng包加载并初始化每个节点上的独立的流。有关进一步详情,请参阅文档init.sprng。不影响主服务器上的发电机。

clusterSetupRNGstream loads the rlecuyer package, creates one stream per node and distributes the stream states to the nodes.
clusterSetupRNGstream加载rlecuyer包,每个节点创建一个流的流态分布的节点。

For more details see http://www.stat.uiowa.edu/~luke/R/cluster/cluster.html.
欲了解更多详细信息,请参阅http://www.stat.uiowa.edu/~:微温/ R /聚类/ cluster.html的。


实例----------Examples----------


  ## Not run: [#不运行:]
clusterSetupSPRNG(cl)
clusterSetupSPRNG(cl, seed=1234)
clusterSetupRNG(cl, seed=rep(1,6))
  
## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-8 03:37 , Processed in 0.029790 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表