Code Monkey home page Code Monkey logo

disease-simulation's Introduction

Disease simulation

Introduction

This project implements graphic version of epidemic simulation model on 2D map.

Society model

Our models create pseudo-random distribution of age to distinguish different ways of passing-through the infection (probabilities of getting infected, death, recovery and vaccination differ basen on person's age).

Person model

As a single person, we can:

  • get infected
  • infect our neighbours
  • die because of infection
  • recover from sickness - that gives us lower chances of being infected, lower probability of death and higher chances to recover again
  • get vaccinated - the same effects as recovery but bigger modifiers of these constants

Disease

To model our epidemic, we use parameters such as:

  • contagiousness - to describe how easily epidemic spreads
  • fatality - general probability of death when infected
  • cure_difficulty - how difficult it is to recover
  • vaccine_aversion - according to recent situation, this parameter describes probability of people not vaccinating against epidemic

Other parameters

  • vaccine_invention_speed - describes probability of fast invention of vaccine
  • simulation_length - although our simulation has no strict limit, this parameter is connected to vaccine_invention_speed, because we have to make a comparison what "faster" really means

How to use

Make sure you have QT library installed on your device.

  1. Run main.cpp file.
  2. Two windows should be displayed - "Step" button and a map.
  3. Clicking the button will generate next epoque of simulation.
  4. Map tiles are coloured in certain manner:

scale

Unfortunately model parameters cannot be set in gui - in order to change them you have to manually set them in frontend/Window.cpp.

disease-simulation's People

Contributors

igsit avatar

Watchers

 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.