Class EpidemicModel

java.lang.Object
org.episteme.social.sociology.health.EpidemicModel

public class EpidemicModel extends Object
Implements epidemiological models such as SIR (Susceptible-Infectious-Recovered) to simulate disease spread within a social SociologicalGroup or network.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • calculateR0

      public static Real calculateR0(Real transmissionRate, Real recoveryRate)
      Calculates the basic reproduction number (R0) given transmission rate and recovery rate. R0 = beta / gamma
      Parameters:
      transmissionRate - (Beta) The average number of contacts sufficient for transmission per unit time.
      recoveryRate - (Gamma) The rate at which infectious individuals recover (1/duration).
      Returns:
      R0
    • stepSIR

      public static Real[] stepSIR(Real S, Real I, Real R, Real N, Real beta, Real gamma, Real dt)
      Simulation step for a basic deterministic SIR model. dS/dt = -beta * S * I / N dI/dt = beta * S * I / N - gamma * I dR/dt = gamma * I
      Parameters:
      S - Susceptible count
      I - Infectious count
      R - Recovered count
      N - Total population
      beta - Transmission rate
      gamma - Recovery rate
      dt - Time step
      Returns:
      Array of new [S, I, R] values