Class Epidemiology

java.lang.Object
org.episteme.natural.biology.ecology.Epidemiology

public class Epidemiology extends Object
Epidemiology models.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • Epidemiology

      public Epidemiology()
  • Method Details

    • sirModel

      public static Real[][] sirModel(Real S0, Real I0, Real R0, Real beta, Real gamma, Real dt, int steps)
      SIR (Susceptible-Infectious-Recovered) model simulation. dS/dt = -beta * S * I / N dI/dt = beta * S * I / N - gamma * I dR/dt = gamma * I
      Parameters:
      S0 - Initial susceptible
      I0 - Initial infectious
      R0 - Initial recovered
      beta - Transmission rate
      gamma - Recovery rate
      dt - Time step
      steps - Number of steps
      Returns:
      Real[][] with columns [S, I, R] and rows = steps
    • basicReproductionNumber

      public static Real basicReproductionNumber(Real beta, Real gamma)
      Basic reproduction number (R0). R0 = beta / gamma
    • herdImmunityThreshold

      public static Real herdImmunityThreshold(Real r0)
      Herd immunity threshold. HIT = 1 - 1/R0