Links
- Github https://github.com/GarrettBurroughs/Virus-Simulator
- Demo: https://garrettburroughs.github.io/Virus-Simulator/
Summary
This is a small project that does a very rough “simulation” of virus spread. The simulation is based of off the differntial equation:
let dx = (k, m, r) => (x) => k * (m - (x + r)) / m * (x);
Where:
- k: infection rate
- m: total population
- r: population immune
The simulation also accounts for a “recovery period” in which a person is infected and can spread disease.
This is more of an exercise in understanding differential equaitons, exponential growth and data visualization
Languages Used: Javascript
Technologies Used: chartjs
Takeaways
This is a smaller project, but gave me insigth into levergaing libraries to achieve complete results with a minimal amount of code. As mentioned in the summary section, this project also gave me more exerpeince in differential equations and data visualization.