Epidemiology: The SEIR model: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 61: Line 61:
              
              
function loop() {
function loop() {
   var dS = /*mu.Value()*(1-S.pos[1])*/-beta*I.pos[1]*S.pos[1];  
   var dS = /*mu.Value()*(1-S.pos[1])*/-beta.Value()*I.pos[1]*S.pos[1];  
   var dE = beta*I.pos[1]*S.pos[1]-(mu.Value()+a.Value())*E.pos[1];
   var dE = beta*I.pos[1]*S.pos[1]-(mu.Value()+a.Value())*E.pos[1];
   var dI = /*a.Value()*E.pos[1]*/-(gamma.Value()+mu.Value())*I.pos[1];
   var dI = /*a.Value()*E.pos[1]*/-(gamma.Value()+mu.Value())*I.pos[1];

Revision as of 07:53, 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.00
a = 0.00
initially infected population rate (on load: I(0)=1.27E-6)
β: infection rate
γ: recovery rate = 1/(days of infection)