model.h Source File
|
CPP API
|
smm/model.h
Go to the documentation of this file.
39 using PopulationIndex = decltype(concatenate_indices(std::declval<Region>(), std::declval<Status>()));
54 class Model : public mio::CompartmentalModel<FP, Comp, mio::Populations<FP, PopulationIndex<Status, Region>>,
57 using Base = mio::CompartmentalModel<FP, Comp, mio::Populations<FP, PopulationIndex<Status, Region>>,
59 static_assert(!Base::Populations::Index::has_duplicates, "Do not use the same Index tag multiple times!");
mio::Index< Tag > size() const
returns the size along the dimension provided as template parameter
Definition: custom_index_array.h:204
size_t get_flat_index(Index const &index) const
get_flat_index returns the flat index into the stored array, given the indices of each category
Definition: custom_index_array.h:309
FP evaluate(const AdoptionRate< FP, Status, Region > &rate, const Eigen::VectorX< FP > &x) const
Calculate the current rate of the given adoption.
Definition: smm/model.h:74
Model(Status status_dimensions, Region region_dimensions)
Definition: smm/model.h:62
FP evaluate(const TransitionRate< FP, Status, Region > &rate, const Eigen::VectorX< FP > &x) const
Calculate the current rate of the given spatial transition.
Definition: smm/model.h:103
mio::RandomNumberGenerator & get_rng()
Get the RandomNumberGenerator used by this Model for random events.
Definition: smm/model.h:113
mio::RandomNumberGenerator m_rng
Model's random number generator.
Definition: smm/model.h:119
decltype(concatenate_indices(std::declval< Region >(), std::declval< Status >())) PopulationIndex
The Index type used to define the SMM subpopulations.
Definition: smm/model.h:39
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Range< MultiIndexIterator< Index< Categories... > > > make_index_range(Index< Categories... > dimensions)
Construct a range that can be used to iterate over all MultiIndices in the given dimensions.
Definition: index_range.h:168
decltype(auto) concatenate_indices(IndexArgs &&... args)
Combine several Indexs into one MultiIndex.
Definition: index.h:355
Struct defining a possible status adoption in a Model based on Poisson Processes.
Definition: adoption_rate.h:49
std::vector< Influence< FP, Status > > influences
Definition: adoption_rate.h:54
CompartmentalModel is a template for a compartmental model for an array of initial populations and a ...
Definition: compartmental_model.h:59
Populations populations
Definition: compartmental_model.h:156
Struct defining a possible regional transition in a Model based on Poisson Processes.
Definition: smm/parameters.h:56
Generated by