Common data types
The following list explains the nonstandard data types that are used throughout MEmilio.
Data type name |
Description |
|---|---|
|
A floating point type. Usually |
|
This data type describes a value sampled from a given distribution. The value is initialized with a given |
|
A typesafe |
|
A typesafe |
|
A contiguous array whose values can be accessed by a multi-index, e.g. a |
|
Is a |
|
Stores vectors of values at time points. Each time point has a vector of values of the same size with operations like adding time points, retrieving values, exporting to CSV, etc. It’s also used for storing and analyzing simulation results over time. |
|
A generic graph structure that represents a network of nodes connected by edges. Each node and edge can have associated properties. The graph is used to model geographical regions connected by mobility patterns (e.g., commuting), where each node is represented by its own epidemiological model. |
|
Represents a node in a graph with a unique ID and associated properties. |
|
Represents a directed connection between two nodes in a graph with associated properties. |
|
Base classes for Edge that define start and end node indices for connections in the graph. |
|
Represents a simulation in one node of a mobility graph. Contains a simulation model of any type and keeps track of the last state and time point. |
|
Time-dependent mobility coefficients used to model how populations move between nodes in a graph. |
|
A collection of time-dependent mobility coefficients that differentiate between various sources of mobility. |
|
Parameters that influence mobility between nodes, including coefficients and dynamic nonpharmaceutical interventions (NPIs). |
|
Represents mobility between two nodes in a graph. Handles the movement of populations between nodes, tracks mobile populations, and applies mobility returns according to epidemiological models. |
|
Time-dependent contact frequencies between groups, derived from |
|
A collection of contact matrices that represent different contexts (e.g., home, school, work) whose sum is the total number of contacts, derived from |
|
Represents a coefficient-wise matrix expression \(B - D \odot (B - M)\), where \(B\) is a baseline matrix, \(M\) is a minimum matrix, \(D\) is a time-dependent complex damping factor, and \(\odot\) is element wise multiplication. Used as the base for time-dependent contact matrices. |
|
Represents a collection of |
|
Stores coordinates in (Latitude, Longitude) format. Allows for comparisons and realistic distance calculations. |
|
Represents a distance. Internally, all distances are stored in meters. They can be created from meters or kilometers and they can be exported using both units. See mio::geo::Distance |