Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 1.17 KB

README.md

File metadata and controls

16 lines (13 loc) · 1.17 KB

sirsimx

This project reproduces the SIR Model for spread of diseases using HTML canvas and the JavaScript p5.js library. Some scripts were minified with Google's Closure Compiler.

Simple SIR Model Simulation

A box simulates the space where the individuals - represesented by the balls - of a population move. The individuals, according to the model, can be in each moment in one of three possible status:

  • Susceptible (S) - individuals that haven't contracted the disease
  • Infectious (I) - individuals that has the disease and can spread it to others
  • Recovered (R) - ex-infectious that no longer have the disease, can't spread it and are now immune to it.

Vaccination

In addition to the SIR model, vaccination was model too (thanks to TikiTDO) based on two parameters:

  • the percentage of the population that is vaccinated
  • the effectiveness (in percentage) of the vaccine.

Final Result

The final result can be found at https://lorenzofelletti.github.io/sirsimx/.