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

R语言 Rtreemix包 RtreemixSim-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 13:44:21 | 显示全部楼层 |阅读模式
RtreemixSim-class(Rtreemix)
RtreemixSim-class()所属R语言包:Rtreemix

                                        Class "RtreemixSim"
                                         类“RtreemixSim”

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

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

This class contains data simulated from the RtreemixModel it extends together with their sampling and waiting times. It also includes the sampling mode and the sampling parameter used for the time simulation.     
这个类包含模拟RtreemixModel延伸连同他们的采样和等待时间的数据。它还包括用于实时仿真采样模式和采样参数。


类的对象----------Objects from the Class----------

Objects can be created by calls of the form new("RtreemixSim",     Model, SimPatterns, SamplingMode, SamplingParam, WaitingTimes,     SamplingTimes). The RtreemixSim class specifies patterns (RtreemixData) simulated from the parent RtreemixModel together with their waiting and sampling times resulting from the waiting time simulation along the branchings in the parent model.
创建对象可以通过检测的形式new("RtreemixSim",     Model, SimPatterns, SamplingMode, SamplingParam, WaitingTimes,     SamplingTimes)。 RtreemixSim类指定模式(RtreemixData)从父模拟RtreemixModel,连同他们的等待和采样时间造成的等待时间模拟沿父模型中的分枝。

The Model is an RtreemixModel object used in the data and time simulation process. In other words, this model is used for simulating patterns with their sampling and waiting times.
ModelRtreemixModel对象的数据和实时仿真过程中使用。换句话说,这个模型被用来模拟其采样模式和等待时间。

The SimPatterns is an RtreemixData object that contains the patterns simulated from the given Model.
SimPatterns是RtreemixData对象,它包含从给定的Model模拟模式。

The SamplingMode is a character that specifies the sampling mode ("constant" or "exponential") used in the time simulations.
SamplingMode是character指定时间模拟中使用的采样模式(“不变”或“指数”)。

The SamplingParam is a numeric that specifies the sampling parameter corresponding to the sampling mode given by SamplingMode.
SamplingParamnumeric指定SamplingMode采样模式给予相应的采样参数。

The WaitingTimes is a numeric vector that specifies the waiting times for the simulated patterns. Its length equals the number of patterns in SimPatterns.
WaitingTimes是一个数字vector指定为模拟模式的等待时间。其长度等于模式SimPatterns的数量。

The SamplingTimes is a numeric vector that specifies the sampling times for the simulated patterns. Its length equals the number of patterns in SimPatterns.  
SamplingTimes是一个数字vector指定为模拟模式的采样时间。其长度等于模式SimPatterns的数量。


插槽----------Slots----------




SimPatterns: Object of class "RtreemixData".
SimPatterns类"RtreemixData"的对象。




SamplingMode: Object of class "character". It
SamplingMode类"character"的对象。它




SamplingParam: Object of class "numeric".
SamplingParam类"numeric"的对象。




WaitingTimes: Object of class "numeric". The length of WaitingTimes must be equal to the number
WaitingTimes类"numeric"的对象。 WaitingTimes长度必须等于多少




SamplingTimes: Object of class "numeric". The length of SamplingTimes must be equal to the number
SamplingTimes类"numeric"的对象。 SamplingTimes长度必须等于多少


延伸----------Extends----------

Class "RtreemixModel", directly. Class "RtreemixData", by class "RtreemixModel", distance 2.
类"RtreemixModel",直接。类"RtreemixData",由类“RtreemixModel”,距离为2。


方法----------Methods----------




SamplingMode signature(object = "RtreemixSim"): A method for obtaining the sampling mode ("constant" or
SamplingModesignature(object = "RtreemixSim"):一个方法获得采样模式(“不变”或




SamplingParam signature(object = "RtreemixSim"): A method for obtaining the sampling parameter corresponding to the
SamplingParamsignature(object = "RtreemixSim"):获得相应的采样参数的方法




SamplingTimes signature(object = "RtreemixSim"): A method used for obtaining the sampling times of the patterns
SamplingTimessignature(object = "RtreemixSim"):一个方法用于获取模式的采样时间




SimPatterns signature(object = "RtreemixSim"): A
SimPatternssignature(object = "RtreemixSim"):




WaitingTimes signature(object = "RtreemixSim"): A method used for obtaining the waiting times of the patterns
WaitingTimessignature(object = "RtreemixSim"):获取模式的等待时间使用方法




getModel signature(object = "RtreemixSim"): A method
getModelsignature(object = "RtreemixSim"):一个方法




noDraws signature(object = "RtreemixSim"): A method
noDrawssignature(object = "RtreemixSim"):一个方法


作者(S)----------Author(s)----------


Jasmina Bogojeska



参考文献----------References----------



参见----------See Also----------

RtreemixGPS-class, RtreemixData-class, RtreemixModel-class, fit-methods, sim-methods
RtreemixGPS-class,RtreemixData-class,RtreemixModel-class,fit-methods,sim-methods


举例----------Examples----------


## Generate a random RtreemixModel object with 3 components and 9 genetic events.[#生成与3个组成部分和9个遗传事件的随机RtreemixModel对象。]
rand.mod <- generate(K = 3, no.events = 9, noise.tree = TRUE, prob = c(0.2, 0.8))
show(rand.mod)

## Create an RtreemixSim object by simulating patterns with their sampling and waiting times from a given mixture model.[#创建RtreemixSim对象通过模拟与他们的抽样模式,并从一个给定的混合模型的等待时间。]
sim.data <- sim(model = rand.mod, sampling.mode = "exponential", sampling.param = 1, no.sim = 200)
show(sim.data)

## See the slots from the RtreemixSim object.[#插槽从RtreemixSim对象。]
SimPatterns(sim.data)
SamplingMode(sim.data)
SamplingParam(sim.data)
WaitingTimes(sim.data)
SamplingTimes(sim.data)
## See model.[#查看模型。]
getModel(sim.data)
## See number of simulated patterns.[#见模拟模式的数量。]
noDraws(sim.data)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 17:49 , Processed in 0.024263 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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