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

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

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

                                        Create a function for advancing the state of an SPN by using a simple Euler-Maruyama integration method for the approximating CLE
                                         创建一个函数逼近CLE使用一个简单的欧拉 - 丸山集成方法,为推进国家的SPN

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

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

This function creates a function for advancing the state of an SPN model using a simple Euler-Maruyama integration method for the approximating chemical Langevin equation (CLE). The resulting function (closure) can be used in conjunction with other functions (such as simTs) for simulating realisations of SPN models.
这个函数创建一个函数使用一个简单的欧拉 - 丸山集成方法的逼近化学朗之万方程(CLE),为推进国家的SPN模型。由此产生的功能(闭合),可以与其它功能一起使用(如simTs)模拟变现SPN的模型。


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


StepCLE(N,dt=0.01)



参数----------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 posses 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将被忽略的大部分功能,使用功能关闭。


参数:dt
Time step to be used by the Euler-Maruyama integration method. Defaults to 0.01.
欧拉丸山集成方法要使用的时间步长。默认值为0.01。


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


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

StepGillespie, StepEulerSPN,
StepGillespie,StepEulerSPN,


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


# load the LV model[加载LV模型]
data(spnModels)
# create a stepping function[创建一个步进功能]
stepLV = StepCLE(LV)
# step the function[加强功能]
print(stepLV(c(x1=50,x2=100),0,1))
# integrate the process and plot it[整合的过程,并绘制]
out = simTs(c(x1=50,x2=100),0,20,0.1,stepLV)
plot(out)
plot(out,plot.type="single",lty=1:2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-29 04:17 , Processed in 0.023901 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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