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

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

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

                                        Simulate a many realisations of a model at a given fixed time in the future given an initial time and state, using a function (closure) for advancing the state of the model
                                         模拟许多实现在一个给定的固定的时间给出一个初始的时间和状态在未来的一个模型,用于推进的状态的模型中使用的功能(关闭)

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

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

This function  simulates  many realisations of a model at a given fixed time in the future given an initial time and state, using a function (closure) for advancing the state of the model , such as created by StepGillespie or StepSDE.
此功能模拟实现的一个模型,在给定的固定时间在给定的初始时间和国家的未来,推动国家的模式,如创建StepGillespie或<X使用的功能(关闭) >。


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


simSample(n=100,x0,t0=0,deltat,stepFun,...)



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

参数:n
The number of samples required. Defaults to 100.
所需样品的数量。默认为100。


参数: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。


参数:deltat
The amount of time in the future of t0 at which samples of the system state are required.
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----------

StepSDE, StepGillespie, simTimes, simTs
StepSDE,StepGillespie,simTimes,simTs


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


# load LV model[加载LV模型]
data(spnModels)
# create a stepping function[创建一个步进功能]
stepLV = StepGillespie(LV)
# simulate a sample from the transition kernel[模拟一个样品从过渡内核]
out3 = simSample(100,c(x1=50,x2=100),0,20,stepLV)
hist(out3[,"x2"])

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-29 05:13 , Processed in 0.022826 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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