# Table of Contents
# Pre
Pre-made models for disease outbreaks.
Import it with:
const pre = require('@epispot/epijs').pre
# sir
The SIR Model. Returns the model as a model
class from the model
module.
# Parameters
rn
Number (opens new window) R Naught, or the amount of people one infected infects whlie infected.s
Number (opens new window) The Susceptible population at the beggining of the outbreaki
Number (opens new window) The Infected population at the beggining of th outbreaku
Number (opens new window) The recovery ratep
Number (opens new window) The total population.stochastic
Boolean (opens new window) Whether to make the model stochastic or not.
# Examples
let sirmodel = sir(4, 9999, 1, 1/21, 10000, true)
Returns any A model class from the model
module. .
# seir
The SEIR Model. Returns the model as a model
class from the model
module.
# Parameters
rn
Number (opens new window) R Naught, or the amount of people one infected infects whlie infected.s
Number (opens new window) The Susceptible population at the beggining of the outbreaki
Number (opens new window) The Infected population at the beggining of th outbreaku
Number (opens new window) The recovery ratea
Number (opens new window) The incubation periodp
Number (opens new window) The total population.stochastic
Boolean (opens new window) Whether to make the model stochastic or not.
# Examples
seir(4, 9999, 1, 1/7, 1/7, 10000, true)
Returns any A model class from the model
module. .
# seird
The SEIRD Model. Returns the model as a model
class from the model
module.
# Parameters
rn
Number (opens new window) R Naught, or the amount of people one infected infects whlie infected.s
Number (opens new window) The Susceptible population at the beggining of the outbreaki
Number (opens new window) The Infected population at the beggining of the outbreaku
Number (opens new window) The recovery ratea
Number (opens new window) The incubation periodd
Number (opens new window) The death ratep
Number (opens new window) The total population.stochastic
Boolean (opens new window) Whether to make the model stochastic or not.
# Examples
seird(4, 99999, 1, 1/21, 1/14, 1/100, 10000, true)
Returns any A model class from the model
module. .
# seihrd
The SEIHRD Model. Returns the model as a model
class from the model
module.
# Parameters
rn
Number (opens new window) R Naught, or the amount of people one infected infects whlie infected.s
Number (opens new window) The Susceptible population at the beggining of the outbreaki
Number (opens new window) The Infected population at the beggining of the outbreaku
Number (opens new window) The recovery rate for the infected populationuh
Number (opens new window) The recovery rate for the hospitalized populationa
Number (opens new window) The incubation perioddi
Number (opens new window) The death rate for the infected populationdh
Number (opens new window) The death rate for the hospitalized populationh
Number (opens new window) The hospitalization ratep
Number (opens new window) The total population.stochastic
Boolean (opens new window) Whether to make the model stochastic or not.
# Examples
seihrd(4, 9999, 1, 1/21, 1/40, 1/14, 1/100, 1/20, 1/30, 10000, true)
Returns any A model class from the model
module. .