Git Product home page Git Product logo

sirsimx's Introduction

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/.

sirsimx's People

Contributors

lorenzofelletti avatar tikitdo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sirsimx's Issues

Zero percent vaccination rate not working

Describe the bug
The vaccination rate cannot be dragged down to 0%.

To Reproduce
Steps to reproduce the behavior:

  1. Open the simulation page
  2. Drag the vaccination rate down to 0
  3. See that in the new simulation the number of vaccinated is not 0% but roughly 30% of the total balls (the default value)

Expected behavior
It should be possible to have a 0% vaccination rate.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Edge
  • Version: 104.0.1293.70

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.