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

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

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

                                        Discretise output from a discrete event simulation algorithm
                                         Discretise输出从离散事件仿真算法

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

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

This function discretise output from a discrete event simulation algorithm such as gillespie onto a regular time grid, and returns the results as an R ts object.
这的功能discretise输出从离散事件仿真算法,如gillespie到一个固定的时间格,返回的Rts对象。


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


discretise(out, dt=1, start=0)



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

参数:out
A list containing discrete event simulation output in the form of that produced by gillespie.
一个列表,其中包含离散事件模拟输出的形式,产生的gillespie。


参数:dt
The time step required for the output of the discretisation process. Defaults to one time unit.
输出的离散化过程所需的时间步长。默认为一个单位时间。


参数:start
The start time for the output. Defaults to zero.
输出的开始时间。默认值为零。


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

An R ts object containing the discretised output.
Rts对象,其中包含的离散化输出。


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

simpleEuler, rdiff, gillespie, gillespied, ts
simpleEuler,rdiff,gillespie,gillespied,ts


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


# load LV model[加载LV模型]
data(spnModels)
# simulate a realisation of the process and plot it[模拟的过程,并画出它的实现]
out = gillespie(LV,10000)
op=par(mfrow=c(2,2))
plot(stepfun(out$t,out$x[,1]),pch="")
plot(stepfun(out$t,out$x[,2]),pch="")
plot(out$x,type="l")

# use the "discretise" function to map it to an R "ts" object[使用“discretise”功能将它映射到一个R“TS”对象]
plot(discretise(out,dt=0.01),plot.type="single",lty=c(1,2))
par(op)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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