/SIR-Model-JFX

Models infectious diseases

Primary LanguageJava

SIR-Model-JFX

JDK 15.0.1

Dependencies

  • javafx-fxml - 15.0.1
  • javafx-controls - 15.0.1
  • javafx-graphics - 15.0.1

Description

This program is meant to model and slightly animate infectious diseases, as explained on wikipedia on how the SIR model works. The program uses the formulas from the above article instead of running a simulation:

How to Use

When the program starts it will have some default values and max values for the sliders.

alt text

Using any of the sliders will smoothly transition the series' on the graph. In this case the total time slider stretches/shrinks the graph horizontally, because its changing the upper bound of the x-axis.

alt text

Finally, by inputting into the bottom left fields new max values for certain sliders you can also alter the way the graph looks.

alt text