Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lorenzofelletti/sirsimx
- Owner: lorenzofelletti
- License: mit
- Created: 2020-03-19T00:41:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-02T14:49:30.000Z (over 2 years ago)
- Last Synced: 2023-04-08T19:13:59.387Z (over 1 year ago)
- Topics: coronavirus, covid-19, javascript, simulation, sir-model
- Language: JavaScript
- Homepage: https://lorenzofelletti.github.io/sirsimx/
- Size: 500 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/.