Class ModelSEIRDCONN¶
Template for a Susceptible-Exposed-Infected-Removed-Deceased (SEIRD) model with connected population. More...
#include <seirdconnected.hpp>
Inherits the following classes: epiworld::Model< EPI_DEFAULT_TSEQ >
Public Static Attributes¶
| Type | Name |
|---|---|
| const int | DECEASED = 4 |
| const int | EXPOSED = 1 |
| const int | INFECTED = 2 |
| const int | REMOVED = 3 |
| const int | SUSCEPTIBLE = 0 |
Public Functions¶
| Type | Name |
|---|---|
| ModelSEIRDCONN () |
|
| ModelSEIRDCONN (ModelSEIRDCONN< TSeq > & model, const std::string & vname, epiworld_fast_uint n, epiworld_double prevalence, epiworld_double contact_rate, epiworld_double transmission_rate, epiworld_double avg_incubation_days, epiworld_double recovery_rate, epiworld_double death_rate) Template for a Susceptible-Exposed-Infected-Removed (SEIR) model. |
|
| ModelSEIRDCONN (const std::string & vname, epiworld_fast_uint n, epiworld_double prevalence, epiworld_double contact_rate, epiworld_double transmission_rate, epiworld_double avg_incubation_days, epiworld_double recovery_rate, epiworld_double death_rate) |
|
| Model< TSeq > * | clone_ptr () |
| size_t | get_n_infected () const |
| ModelSEIRDCONN< TSeq > & | initial_states (std::vector< double > proportions_, std::vector< int > queue_={}) Set up the initial states of the model. |
| void | reset () |
| ModelSEIRDCONN< TSeq > & | run (epiworld_fast_uint ndays, int seed=-1) |
Detailed Description¶

Public Static Attributes Documentation¶
variable DECEASED¶
variable EXPOSED¶
variable INFECTED¶
variable REMOVED¶
variable SUSCEPTIBLE¶
Public Functions Documentation¶
function ModelSEIRDCONN [1/3]¶
function ModelSEIRDCONN [2/3]¶
Template for a Susceptible-Exposed-Infected-Removed (SEIR) model.
inline ModelSEIRDCONN::ModelSEIRDCONN (
ModelSEIRDCONN < TSeq > & model,
const std::string & vname,
epiworld_fast_uint n,
epiworld_double prevalence,
epiworld_double contact_rate,
epiworld_double transmission_rate,
epiworld_double avg_incubation_days,
epiworld_double recovery_rate,
epiworld_double death_rate
)
Parameters:
modelA Model<TSeq> object where to set up the SIR.vnamestd::string Name of the virusprevalenceInitial prevalence (proportion)contact_rateAverage number of contacts (interactions) per step.transmission_rateProbability of transmissionrecovery_rateProbability of recoverydeath_rateProbability of death
function ModelSEIRDCONN [3/3]¶
inline ModelSEIRDCONN::ModelSEIRDCONN (
const std::string & vname,
epiworld_fast_uint n,
epiworld_double prevalence,
epiworld_double contact_rate,
epiworld_double transmission_rate,
epiworld_double avg_incubation_days,
epiworld_double recovery_rate,
epiworld_double death_rate
)
function clone_ptr¶
function get_n_infected¶
function initial_states¶
Set up the initial states of the model.
inline ModelSEIRDCONN < TSeq > & ModelSEIRDCONN::initial_states (
std::vector< double > proportions_,
std::vector< int > queue_={}
)
Parameters:
proportions_Double vector with the following values:- 0: Proportion of non-infected agents who are removed.
- 1: Proportion of exposed agents to be set as infected.
function reset¶
function run¶
The documentation for this class was generated from the following file include/epiworld/models/seirdconnected.hpp