Skip to content

Class ModelSEIRDCONN

template <typename TSeq>

ClassList > 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

Image

Public Static Attributes Documentation

variable DECEASED

const int ModelSEIRDCONN< TSeq >::DECEASED;

variable EXPOSED

const int ModelSEIRDCONN< TSeq >::EXPOSED;

variable INFECTED

const int ModelSEIRDCONN< TSeq >::INFECTED;

variable REMOVED

const int ModelSEIRDCONN< TSeq >::REMOVED;

variable SUSCEPTIBLE

const int ModelSEIRDCONN< TSeq >::SUSCEPTIBLE;

Public Functions Documentation

function ModelSEIRDCONN [1/3]

inline ModelSEIRDCONN::ModelSEIRDCONN () 

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:

  • model A Model<TSeq> object where to set up the SIR.
  • vname std::string Name of the virus
  • prevalence Initial prevalence (proportion)
  • contact_rate Average number of contacts (interactions) per step.
  • transmission_rate Probability of transmission
  • recovery_rate Probability of recovery
  • death_rate Probability 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

inline Model < TSeq > * ModelSEIRDCONN::clone_ptr () 

function get_n_infected

inline size_t ModelSEIRDCONN::get_n_infected () const

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

inline void ModelSEIRDCONN::reset () 

function run

inline ModelSEIRDCONN < TSeq > & ModelSEIRDCONN::run (
    epiworld_fast_uint ndays,
    int seed=-1
) 


The documentation for this class was generated from the following file include/epiworld/models/seirdconnected.hpp