Model< FP > Class Template Reference
|
CPP API
|
mio::oseirv::Model< FP > Class Template Reference
#include <model.h>
Inheritance diagram for mio::oseirv::Model< FP >:
Collaboration diagram for mio::oseirv::Model< FP >:
Public Types | |
| using | ParameterSet = typename Base::ParameterSet |
| using | PopulationsType = typename Base::Populations |
Public Types inherited from mio::FlowModel< FP, InfectionState, mio::Populations< FP, AgeGroup, InfectionState >, Parameters< FP >, Flows > | |
| using | Base = CompartmentalModel< FP, InfectionState, mio::Populations< FP, AgeGroup, InfectionState >, Parameters< FP > > |
Public Types inherited from mio::CompartmentalModel< FP, InfectionState, mio::Populations< FP, AgeGroup, InfectionState >, Parameters< FP > > | |
| using | Compartments = InfectionState |
| using | ParameterSet = Parameters< FP > |
| using | Populations = mio::Populations< FP, AgeGroup, InfectionState > |
Public Member Functions | |
| void | get_flows (Eigen::Ref< const Eigen::VectorX< FP >> pop, Eigen::Ref< const Eigen::VectorX< FP >> y, FP t, Eigen::Ref< Eigen::VectorX< FP >> flows) const override |
| Model (const PopulationsType &pop, const ParameterSet ¶ms) | |
| Model (int num_agegroups) | |
Public Member Functions inherited from mio::FlowModel< FP, InfectionState, mio::Populations< FP, AgeGroup, InfectionState >, Parameters< FP >, Flows > | |
| FlowModel (Args... args) | |
| Default constructor, forwarding args to Base constructor. More... | |
| void | get_derivatives (Eigen::Ref< const Eigen::VectorX< FP >> flows, Eigen::Ref< Eigen::VectorX< FP >> dydt) const |
| Compute the right-hand-side of the ODE dydt = f(y, t) from flow values. More... | |
| void | get_derivatives (Eigen::Ref< const Eigen::VectorX< FP >> pop, Eigen::Ref< const Eigen::VectorX< FP >> y, FP t, Eigen::Ref< Eigen::VectorX< FP >> dydt) const final |
| Compute the right-hand-side f(y, t) of the ODE and store it in dydt. More... | |
| constexpr size_t | get_flat_flow_index () const |
| A flat index into an array of flows (as computed by get_flows), if the only used category in Pop is Comp. More... | |
| size_t | get_flat_flow_index (const FlowIndex &indices) const |
| A flat index into an array of flows (as computed by get_flows), given the indices of each category. More... | |
| Eigen::VectorX< FP > | get_initial_flows () const |
| Initial values for flows. More... | |
Public Member Functions inherited from mio::CompartmentalModel< FP, InfectionState, mio::Populations< FP, AgeGroup, InfectionState >, Parameters< FP > > | |
| 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... | |
| 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 |
Private Types | |
| using | Base = FlowModel< FP, InfectionState, mio::Populations< FP, AgeGroup, InfectionState >, Parameters< FP >, Flows > |
Additional Inherited Members | |
Public Attributes inherited from mio::CompartmentalModel< FP, InfectionState, mio::Populations< FP, AgeGroup, InfectionState >, Parameters< FP > > | |
| ParameterSet | parameters |
| Populations | populations |
Member Typedef Documentation
◆ Base
template<typename FP >
|
private |
◆ ParameterSet
template<typename FP >
| using mio::oseirv::Model< FP >::ParameterSet = typename Base::ParameterSet |
◆ PopulationsType
template<typename FP >
| using mio::oseirv::Model< FP >::PopulationsType = typename Base::Populations |
Constructor & Destructor Documentation
◆ Model() [1/2]
template<typename FP >
|
inline |
◆ Model() [2/2]
template<typename FP >
|
inline |
Member Function Documentation
◆ get_flows()
template<typename FP >
|
inlineoverridevirtual |
Generated by
Public Types inherited from