parameters.h Source File

CPP API: parameters.h Source File
ide_seir/parameters.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2020-2026 MEmilio
3 *
4 * Authors: Lena Ploetzke
5 *
6 * Contact: Martin J. Kuehn <Martin.Kuehn@DLR.de>
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 
21 #ifndef IDE_SEIR_PARAMS_H
22 #define IDE_SEIR_PARAMS_H
23 
24 #include "memilio/math/eigen.h"
27 
28 namespace mio
29 {
30 namespace iseir
31 {
32 /****************************************************
33 * define some parameters used in the IDE SEIR model *
34 *****************************************************/
35 
42 struct LatencyTime {
43  using Type = ScalarType;
44  static constexpr Type get_default()
45  {
46  return Type(3.3);
47  }
48 };
49 
57  using Type = ScalarType;
58  static constexpr Type get_default()
59  {
60  return Type(8.2);
61  }
62 };
63 
71  using Type = ScalarType;
72  static constexpr Type get_default()
73  {
74  return Type(0.1);
75  }
76 };
77 
87  static Type get_default()
88  {
90  contact_matrix[0] = mio::ContactMatrix<ScalarType>(Eigen::MatrixX<ScalarType>::Constant(1, 1, 10.));
91  return Type(contact_matrix);
92  }
93 };
94 
95 // Define Parameterset for IDE SEIR model.
97 
98 } // namespace iseir
99 } // namespace mio
100 
101 #endif
represents a collection of contact frequency matrices that whose sum is the total number of contacts.
Definition: contact_matrix.h:536
represents time dependent contact frequencies between groups.
Definition: contact_matrix.h:505
a set of parameters defined at compile time
Definition: parameter_set.h:205
The UncertainContactMatrix class consists of a ContactMatrix with fixed baseline and uncertain Dampin...
Definition: uncertain_matrix.h:43
double ScalarType
Configuration of memilio library.
Definition: memilio/config.h:30
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
The contact frequency is modeled using an UncertainContactMatrix.
Definition: ide_seir/parameters.h:85
UncertainContactMatrix< ScalarType > Type
Definition: ide_seir/parameters.h:86
static Type get_default()
Definition: ide_seir/parameters.h:87
The infectious time used in the IDE SEIR model.
Definition: ide_seir/parameters.h:56
ScalarType Type
Definition: ide_seir/parameters.h:57
static constexpr Type get_default()
Definition: ide_seir/parameters.h:58
The time of latency used in the IDE SEIR model.
Definition: ide_seir/parameters.h:42
ScalarType Type
Definition: ide_seir/parameters.h:43
static constexpr Type get_default()
Definition: ide_seir/parameters.h:44
The risk of transmission in the event of a contact used in the IDE SEIR model.
Definition: ide_seir/parameters.h:70
ScalarType Type
Definition: ide_seir/parameters.h:71
static constexpr Type get_default()
Definition: ide_seir/parameters.h:72