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

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

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

                                        Create a function for advancing the state of an SPN by using Gillespie's first reaction method
                                         创建一个函数来推进的SPN的状态的使用Gillespie的第一反应方法

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

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

This function creates a function for advancing the state of an SPN model using Gillespie's first reaction method. The resulting function (closure) can be used in conjunction with other functions (such as simTs) for simulating realisations of SPN models.
这个函数创建一个函数SPN模型中使用吉莱斯皮的第一反应方法,为推进国家。由此产生的功能(闭合),可以与其它功能一起使用(如simTs)模拟变现SPN的模型。


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


StepFRM(N)



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

参数:N
An R list with named components representing a stochastic Petri net. Should contain N$Pre, a matrix representing the LHS stoichiometries, N$Post, a matrix representing the RHS stoichiometries, and N$h, a function representing the rates of the reaction processes. N$h should have first argument x, a vector representing the current state of the system, and second argument t, a scalar representing the current simulation time (in the typical time-homogeneous case, N$h will ignore this argument). N$h may possess additional arguments, representing reaction rates, for example. N does not need to contain an initial marking, N$M. N$M will be ignored by most functions which use the resulting function closure.
一个R代表一个随机Petri网的命名组件列表。应包含N$Pre,代表了LHS化学计量矩阵,N$Post,代表RHS化学计量矩阵,和N$h,反应过程的速率的功能。 N$h应该有第一个参数x,一个向量,表示该系统的当前状态,和第二个参数t,一个标量,表示当前的仿真时间(在典型的时间均匀的情况下, N$h将忽略此参数)。 N$h可能拥有额外的参数,反应速率,例如。 N并不需要包含一个初始标记,N$M。 N$M将被忽略的大部分功能,使用功能关闭。


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


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

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


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


# load the LV model[加载LV模型]
data(spnModels)
# create a stepping function[创建一个步进功能]
stepLV = StepFRM(LV)
# step the function[加强功能]
print(stepLV(c(x1=50,x2=100),0,1))
# simulate a realisation of the process and plot it[模拟的过程,并画出它的实现]
out = simTs(c(x1=50,x2=100),0,100,0.1,stepLV)
plot(out,plot.type="single",lty=1:2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-29 07:34 , Processed in 0.026233 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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