|
| FP | evaluate (const AdoptionRate< FP, Status, Region > &rate, const Eigen::VectorX< FP > &x) const |
| | Calculate the current rate of the given adoption. More...
|
| |
| FP | evaluate (const TransitionRate< FP, Status, Region > &rate, const Eigen::VectorX< FP > &x) const |
| | Calculate the current rate of the given spatial transition. More...
|
| |
| mio::RandomNumberGenerator & | get_rng () |
| | Get the RandomNumberGenerator used by this Model for random events. More...
|
| |
| | Model (Status status_dimensions, Region region_dimensions) |
| |
| bool | apply_constraints () |
| | Checks whether the model satisfies all constraints. More...
|
| |
| bool | check_constraints () const |
| | Checks that the model satisfies all constraints (e.g. More...
|
| |
| | CompartmentalModel (CompartmentalModel &&)=default |
| |
| | CompartmentalModel (const CompartmentalModel &)=default |
| |
| | CompartmentalModel (Populations const &po, ParameterSet const &pa) |
| | CompartmentalModel default constructor. More...
|
| |
| void | eval_right_hand_side (Eigen::Ref< const Eigen::VectorX< FP >> pop, Eigen::Ref< const Eigen::VectorX< FP >> y, FP t, Eigen::Ref< Eigen::VectorX< FP >> dydt) const |
| | This function evaluates the right-hand-side f of the ODE dydt = f(y, t). More...
|
| |
| virtual void | get_derivatives (Eigen::Ref< const Eigen::VectorX< FP >>, Eigen::Ref< const Eigen::VectorX< FP >>, FP, Eigen::Ref< Eigen::VectorX< FP >>) const |
| |
| Eigen::VectorX< FP > | get_initial_values () const |
| | Get the initial conditions for the ODE dydt = f(y, t). More...
|
| |
| CompartmentalModel & | operator= (CompartmentalModel &&)=default |
| |
| CompartmentalModel & | operator= (const CompartmentalModel &)=default |
| |
| virtual | ~CompartmentalModel ()=default |
| |
template<typename FP, class Comp, class Status = Comp, class Region = mio::regions::Region>
class mio::smm::Model< FP, Comp, Status, Region >
Stochastic Metapopulation Model.
The stratification of the population of this model is split between "Status" and "Region". This split is mostly arbitrary, with the important distinction, that for second order rates the reference population (i.e., the N in S' = S * I / N) is calculated by accumulating subpopulations only over the Status, i.e. individuals only interact with other individuals within the same Region. Hence, the assumption of homogeneous mixing of the population only holds across Status groups within one Region. Across Regions, no direct interaction is possible (only indirectly, by first transitioning into another Region)
- Template Parameters
-
| Comp | An enum representing the infection states. Must also be contained in Status |
| Status | A MultiIndex allowing to further stratify infection state adoptions. |
| Region | A MultiIndex for "spatially" distinct subpopulations, default is mio::regions::Region. |