Class Epidemiology
java.lang.Object
org.episteme.natural.biology.ecology.Epidemiology
Epidemiology models.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RealbasicReproductionNumber(Real beta, Real gamma) Basic reproduction number (R0).static RealHerd immunity threshold.static Real[][]SIR (Susceptible-Infectious-Recovered) model simulation. dS/dt = -beta * S * I / N dI/dt = beta * S * I / N - gamma * I dR/dt = gamma * I
-
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 susceptibleI0- Initial infectiousR0- Initial recoveredbeta- Transmission rategamma- Recovery ratedt- Time stepsteps- Number of steps- Returns:
- Real[][] with columns [S, I, R] and rows = steps
-
basicReproductionNumber
-
herdImmunityThreshold
-