Custom ODE solver (Euler method) to solve the SIR model differential equations.
File name | Utility |
---|---|
sir_model [.ipynb or .py] | SIR class implementation and main method. |
ODESolver [.ipynb or .py] | General class to solve an ODE with a subclass to numerically integrate using the forward Euler method. |
SIR plot for ndays = 90 with a resolution (npoints) = 1000
beta varies over time as a result of preventive measures (social distancing, washing hands, etc.)