Skip to content

A simulation model for pandemic spread using population dynamics of infectious diseases

License

Notifications You must be signed in to change notification settings

AmeanAsad/stochastic-disease-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandemic-simulations

A simulation model for pandemic spread using population dynamics of infectious diseases

Installation

To download repo you can:

  • Use git clone:
  https://github.com/AmeanAsad/pandemic-simulations.git  
  • Download zip file from Git.

After download, you need to install required packages:

  • Open terminal
  • cd to the root directory of the repo.
  • Run pip install -r requirements.txt

Usage

Here is a sample to run the Pandemic Model:

  
     size = 300
     nodes = 160
     infectionRate = 0.5
     radius = 7
     speed = 1.9
     steps = 50
     pandemic = PandemicSpread(size, nodes, infectionRate, radius, speed)
     pandemic.startInfection()
     pandemic.deployNodes()

     for step in range(steps):
         pandemic.takeStep()
   

To run the Visualizations, open the visualizations.py folder and:

  • Run SirModelPlot() to visualize the SIR stack plot.
  • Run visualizeParticles() to visualize the particle simulation.

About

A simulation model for pandemic spread using population dynamics of infectious diseases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages