一个基本的细菌感染模型有两个隔间,实现为一组颂歌模型追踪细菌和免疫反应动力。动力模拟的过程是细菌的生长、死亡和被免疫反应杀死,以及免疫反应的激活和衰退。
simulate_basicbacteria_ode(
B = 10,
I = 1,
g = 1,
Bmax = 1e+05,
dB = 0.1,
k = 1e-06,
r = 0.001,
dI = 1,
tstart = 0,
tfinal = 30,
dt = 0.05
)
B : :细菌的起始值:数字
I : :免疫应答的起始值:数字
g : :细菌最大生长速率:数字
Bmax : :载菌量:数字
dB : :细菌死亡率:数字
k : :通过免疫反应杀死细菌的比率:数字
r : :免疫反应增长率:数字
dI : :免疫反应衰减率:数字
tstart : :模拟开始时间:数字
tfinal : :最终模拟时间:数字
dt : :返回结果的次数:数字
# To run the simulation with default parameters:
result < - simulate_basicbacteria_ode()
# To run the simulation with different parameter or starting values,
# supply the ones you want to change.
# all other parameters will be kept at their default values shown in the function call above
result < - simulate_basicbacteria_ode(B = 100, g = 0.5, dI = 2)