Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seir model python

def seir_f(t, y, beta, sigma, gamma):
    s, e, i, r = y
    return np.array([-beta * i * s,
                     -sigma * e + beta * i * s, 
                     -gamma * i + sigma * e, 
                     gamma * i])
Source by web.pdx.edu #
 
PREVIOUS NEXT
Tagged: #seir #model #python
ADD COMMENT
Topic
Name
9+7 =