Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lorenzofelletti/sirsimx

Simple SIR Model Simulation
https://github.com/lorenzofelletti/sirsimx

coronavirus covid-19 javascript simulation sir-model

Last synced: about 1 month ago
JSON representation

Simple SIR Model Simulation

Awesome Lists containing this project

README

        

# sirsimx
This project reproduces the [SIR Model](https://en.wikipedia.org/wiki/Compartmental_models_in_epidemiology#The_SIR_model "SIR Model Wikipedia") for spread of diseases using HTML canvas and the JavaScript [p5.js](https://p5js.org/) library. Some scripts were minified with Google's [Closure Compiler](https://developers.google.com/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](https://github.com/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/.