SampleSetup-class(simFrame)
SampleSetup-class()所属R语言包:simFrame
Class "SampleSetup"
类“SampleSetup”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Class for set up samples.
班成立的样品。
类对象----------Objects from the Class----------
Objects can be created by calls of the form new("SampleSetup", ...) or SampleSetup(...).
可以创建对象通过调用的形式new("SampleSetup", ...)或SampleSetup(...)。
However, objects are expected to be created by the function setup or clusterSetup, these constructor functions are not supposed to be called by the user.
然而,对象预计会创造的功能setup或clusterSetup,这些构造函数不应该是由用户调用。
插槽----------Slots----------
indices: Object of class "list"; each list element
indices:对象类"list",每个列表元素
prob: Object of class "numeric" giving the
prob:类的对象"numeric"给
control: Object of class "VirtualSampleControl"; the
control:对象的类"VirtualSampleControl";
seed: Object of class "list" containing the seeds of the random number generator before and after setting up the samples,
seed:对象的类"list"之前和之后设置示例中包含的随机数发生器的种子,
call: Object of class "SimCall"; the function call
call:类"SimCall";函数调用的对象
存取方法----------Accessor methods----------
getIndices signature(x = "SampleSetup"): get slot
getIndicessignature(x = "SampleSetup"):得到插槽
getProb signature(x = "SampleSetup"): get slot
getProbsignature(x = "SampleSetup"):得到插槽
getControl signature(x = "SampleSetup"): get slot
getControlsignature(x = "SampleSetup"):得到插槽
getSeed signature(x = "SampleSetup"): get slot
getSeedsignature(x = "SampleSetup"):得到插槽
getCall signature(x = "SampleSetup"): get slot
getCallsignature(x = "SampleSetup"):得到插槽
方法----------Methods----------
clusterRunSimulation signature(cl = "ANY", x = "data.frame", setup = "SampleSetup", nrep = "missing",
clusterRunSimulation <CODE>签名(CL =“ANY”,X =“数据框”,设置=“SampleSetup”,NREP =“失踪”
draw signature(x = "data.frame",
draw <CODE>签名(X =“数据框”
head signature(x = "SampleSetup"): returns the first
“headsignature(x = "SampleSetup"):返回第一个
length signature(x = "SampleSetup"): get the number of
lengthsignature(x = "SampleSetup")的:得到多少
runSimulation signature(x = "data.frame", setup = "SampleSetup", nrep = "missing", control = "SimControl"): run a
runSimulationsignature(x = "data.frame", setup = "SampleSetup", nrep = "missing", control = "SimControl"):运行
show signature(object = "SampleSetup"): print set up
showsignature(object = "SampleSetup"):打印成立
summary signature(object = "SampleSetup"): produce a
summarysignature(object = "SampleSetup"):产生
tail signature(x = "SampleSetup"): returns the last
tailsignature(x = "SampleSetup"):返回最后一个
UML类图----------UML class diagram----------
A slightly simplified UML class diagram of the framework can be found in Figure 1 of the package vignette An Object-Oriented Framework for Statistical Simulation: The R Package simFrame. Use vignette("simFrame-intro") to view this vignette.
稍微简单的UML类图的框架,可以发现在图1的包小插曲统计模拟方法的一种面向对象的框架:R封装simFrame。使用vignette("simFrame-intro")查看这个小插曲。
注意----------Note----------
There are no mutator methods available since the slots are not supposed to be changed by the user.
客人没有mutator方法可用,因为槽不应该由用户改变。
Furthermore, the slot seed was added in version 0.2, and the slot control was added in version 0.3. Since the control object used to set up the samples is now stored, the redundant slots design, grouping, collect and fun were removed. This has been done as preparation for additional control classes for sampling, which will be introduced in future versions.
此外,槽seed中加入0.2版本中,和时隙control中加入0.3版本中。因为控制对象使用成立的样品,存储,多余的插槽中design,grouping,collect和fun被删除。这已经做了准备额外的控制类的采样,这将在未来的版本中引入。
(作者)----------Author(s)----------
Andreas Alfons
参考文献----------References----------
Statistical Simulation: The R Package <code>simFrame</code>. Journal of Statistical Software, 37(3), 1–36. URL http://www.jstatsoft.org/v37/i03/.
参见----------See Also----------
"SampleControl", "TwoStageControl", "VirtualSampleControl", setup, draw
"SampleControl","TwoStageControl","VirtualSampleControl",setup,draw
实例----------Examples----------
showClass("SampleSetup")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|