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

R语言 smfsb包 simTimes()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 10:24:29 | 显示全部楼层 |阅读模式
simTimes(smfsb)
simTimes()所属R语言包:smfsb

                                        Simulate a model at a specified set of times, using a function (closure) for advancing the state of the model
                                         为推动国家的模式模拟模型在一组指定的时间,使用的功能(关闭)

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

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

This function simulates a single realisation from a Markovian model and records the state at a specified set of times using a function (closure) for advancing the state of the model, such as created by StepGillespie or StepEulerSPN.
此功能模拟的是单实现从马尔可夫模型和状态记录在指定的一组次使用的功能(关闭)为推动国家的模式,如创建StepGillespie或StepEulerSPN。


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


simTimes(x0,t0=0,times,stepFun,...)



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

参数:x0
The initial state of the process at time t0.
初始状态的过程在时间t0。


参数:t0
The initial time to be associated with the initial state x0. Defaults to 0.
要与初始状态x0相关联的初始时间。默认为0。


参数:times
A vector of times at which the state of the process is required. It is assumed that the times are in increasing order, and that the first time is at least as big as t0.
一种向量,在其中的状态的过程中需要的时间。它是假定的时间是在增大的顺序,并在第一时间是至少大如t0。


参数:stepFun
A function (closure) for advancing the state of the process, such as produced by StepGillespie or StepEulerSPN.
推进过程中的状态(关闭)的功能,如StepGillespie或StepEulerSPN。


参数:...
Additional arguments will be passed to stepFun.
其他参数将被传递给stepFun。


值----------Value----------


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

StepEulerSPN, StepGillespie, simTs, simSample,
StepEulerSPN,StepGillespie,simTs,simSample,


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


# load the LV model[加载LV模型]
data(spnModels)
# create a stepping function[创建一个步进功能]
stepLV = StepGillespie(LV)
# simulate a realisation using simTimes[一个使用simTimes模拟实现]
times = seq(0,100,by=0.1)
plot(ts(simTimes(c(x1=50,x2=100),0,times,stepLV),start=0,deltat=0.1),plot.type="single",lty=1:2)
# simulate a realisation at irregular times[在不规则的时间模拟实现]
times = c(0,10,20,50,100)
out2 = simTimes(c(x1=50,x2=100),0,times,stepLV)
print(out2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-29 05:19 , Processed in 0.030936 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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