Simulation< FP, BaseT > Class Template Reference
|
CPP API
|
specialization of compartment model simulation for the SECIRVVS model. More...
#include <model.h>
Public Member Functions | |
| Eigen::Ref< Eigen::VectorX< FP > > | advance (FP tmax) |
| advance simulation to tmax. More... | |
| void | apply_vaccination (FP t) |
| void | apply_variant (const FP t, const CustomIndexArray< UncertainValue< FP >, AgeGroup > base_infectiousness) |
| Applies the effect of a new variant of a disease to the transmission probability of the model. More... | |
| Simulation (mio::osecirvvs::Model< FP > const &model, FP t0=0., FP dt=0.1) | |
| construct a simulation. More... | |
Private Attributes | |
| std::pair< FP, SimulationTime< FP > > | m_dynamic_npi = {-std::numeric_limits<FP>::max(), SimulationTime<FP>(0)} |
| FP | m_t_last_npi_check |
Detailed Description
template<typename FP, class BaseT>
class mio::osecirvvs::Simulation< FP, BaseT >
specialization of compartment model simulation for the SECIRVVS model.
- Template Parameters
-
FP floating point type, e.g., double. BaseT simulation type, default mio::Simulation. For testing purposes only!
Constructor & Destructor Documentation
◆ Simulation()
|
inline |
construct a simulation.
- Parameters
-
model the model to simulate. t0 start time dt time steps
Member Function Documentation
◆ advance()
|
inline |
advance simulation to tmax.
Overwrites Simulation::advance and includes a check for dynamic NPIs in regular intervals.
- See also
- Simulation::advance
- Parameters
-
tmax next stopping point of simulation
- Returns
- value at tmax
◆ apply_vaccination()
|
inline |
◆ apply_variant()
|
inline |
Applies the effect of a new variant of a disease to the transmission probability of the model.
This function adjusts the transmission probability of the disease for each age group based on the share of the new variant. The share of the new variant is calculated based on the time t and the start day of the new variant. The transmission probability is then updated for each age group in the model.
Based on Equation (35) and (36) in doi.org/10.1371/journal.pcbi.1010054
- Parameters
-
[in] t The current time. [in] base_infectiousness The base infectiousness of the old variant for each age group.
Member Data Documentation
◆ m_dynamic_npi
|
private |
◆ m_t_last_npi_check
|
private |
Generated by