https://github.com/jerr-it/episim
Epidemics simulation in Rust
https://github.com/jerr-it/episim
hacktoberfest simulation
Last synced: about 1 year ago
JSON representation
Epidemics simulation in Rust
- Host: GitHub
- URL: https://github.com/jerr-it/episim
- Owner: jerr-it
- License: gpl-3.0
- Created: 2022-07-21T20:14:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T21:09:14.000Z (over 2 years ago)
- Last Synced: 2025-06-16T02:02:23.681Z (about 1 year ago)
- Topics: hacktoberfest, simulation
- Language: Rust
- Homepage:
- Size: 1.94 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Episim
Simulating epidemics
Configuration
Each configuration has its own folder consisting of two files. Check the example configurations if in doubt.
- core.cfg. Contains various simulation parameters.
- demographic.csv. Determines the demographic composition of the simulations population. CSV files for countries can be downloaded at populationpyramid.net
- (Source code). Toggle the live visualisation by uncommenting the one you want to use (main.rs). Keep in mind the graphic version will take longer to run.
- (Source code). You can adjust the source code to adjust the simulation parameters. Some parameters, such as the functions computing the infection and survival chances, are easily accessible via the static config object in main.rs. Serializing these could be a future improvement.
Gallery
Higher test rate
Shorter recovered period
Pyramid demographic
Without reinfection