Epidemiology: The SEIR model: Difference between revisions

From JSXGraph Wiki
(New page: <html> <form><input type="button" value="clear and run a simulation of 100 days" onClick="clearturtle();run()"> </html> <jsxgraph width="600" height="600" box="box"> var brd = JXG.JSXGraph...)
 
No edit summary
Line 6: Line 6:


var S = brd.createElement('turtle',[],{strokeColor:'yellow',strokeWidth:3});
var S = brd.createElement('turtle',[],{strokeColor:'yellow',strokeWidth:3});
var W = brd.createElement('turtle',[],{strokeColor:'blue',strokeWidth:3});
var E = brd.createElement('turtle',[],{strokeColor:'blue',strokeWidth:3});
var I = brd.createElement('turtle',[],{strokeColor:'red',strokeWidth:3});
var I = brd.createElement('turtle',[],{strokeColor:'red',strokeWidth:3});
var R = brd.createElement('turtle',[],{strokeColor:'green',strokeWidth:3});
var R = brd.createElement('turtle',[],{strokeColor:'green',strokeWidth:3});

Revision as of 07:40, 27 April 2009

1020304050607080900.20.40.60.81−0.2−0.4−0.6−0.8−1
s = 0.00
β = 0.50
γ = 0.30
μ = 0.20
a = 0.10
initially infected population rate (on load: I(0)=1.27E-6)
β: infection rate
γ: recovery rate = 1/(days of infection)