Giter VIP home page Giter VIP logo

pandemic_simulator's Introduction

pandemic_simulator

This is a generic exponential growth pandemic simulator.

Please note that this was written by a software developer and not an epidemiologist. It's not intended to be used for any sort of serious public policy planning. It is rather intended to be a tool for people to get some sense of how exponential doubling goes. It was initially written during the 2020 COVID-19 pandemic for the author to be able to have some personal idea of when a major crisis would occur.

Please especially note that this tool doesn't do any complex modeling of an epidemic over time. In a real epidemic, as the infected population increases, people will self-isolate and measures will be taken to e.g., reduce public events. This will slow the spread of the disease in reality, but this tool makes no attempt to model any of that.

Usage

pandemic_simulator

The following options are supported:

--start

The start date, in format YYYY-MM-DD. If the initial population is more than one, this will be run back at the calculated increase rate to find patient one and start the simulation from there.

--end

The end date, in format YYYY-MM-DD. The date to end the simulation if the --infected ceiling is not ever achieved.

--infected

The starting infected population.

--daily

Output information daily instead of weekly

--doubling

Number of days it takes for the infected population to double

--mean-hospital-stay

The mean time in days for a hospital stay.

--hospitalization-rate

The rate at which infected patients are hospitalized, as a multiplier (i.e., ".1" is "10%"). Patients go into the hospital at this rate, stay for mean-hospital-stay days, then at the end of that time, hospitalized-death-rate of them die, and the rest are discharged.

--hospitalized-death-rate

The rate at which hospitalized patients die at the end of their stay, as a multiplier (i.e., ".1" is "10%")

Output

INFECTED

The total number of people who have ever been infected

HOSP

The total number of people currently in the hospital

DEAD

The total number of people dead

License

MIT

pandemic_simulator's People

Contributors

tqman avatar

Watchers

James Cloos avatar  avatar

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.