parameters.h Source File

CPP API: parameters.h Source File
smm/parameters.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2020-2026 MEmilio
3 *
4 * Authors: René Schmieding, Julia Bicker
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 MIO_SMM_PARAMETERS_H
22 #define MIO_SMM_PARAMETERS_H
23 
24 #include "memilio/config.h"
28 
29 namespace mio
30 {
31 namespace smm
32 {
33 
40 template <typename FP, class Status, class Region>
41 struct AdoptionRates {
42  using Type = std::vector<AdoptionRate<FP, Status, Region>>;
43  const static std::string name()
44  {
45  return "AdoptionRates";
46  }
47 };
48 
55 template <typename FP, class Status, class Region = mio::regions::Region>
57  Status status; // i
58  Region from; // k
59  Region to; // l
60  FP factor; // lambda_i^{kl}
61 };
62 
69 template <typename FP, class Status, class Region>
71  using Type = std::vector<TransitionRate<FP, Status, Region>>;
72  const static std::string name()
73  {
74  return "TransitionRates";
75  }
76 };
77 
78 template <typename FP, class Status, class Region>
80 
81 } // namespace smm
82 
83 } // namespace mio
84 
85 #endif
a set of parameters defined at compile time
Definition: parameter_set.h:205
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
A vector of AdoptionRates, see mio::AdoptionRate.
Definition: smm/parameters.h:41
std::vector< AdoptionRate< FP, Status, Region > > Type
Definition: smm/parameters.h:42
static const std::string name()
Definition: smm/parameters.h:43
Struct defining a possible regional transition in a Model based on Poisson Processes.
Definition: smm/parameters.h:56
FP factor
Definition: smm/parameters.h:60
Status status
Definition: smm/parameters.h:57
Region from
Definition: smm/parameters.h:58
Region to
Definition: smm/parameters.h:59
A vector of TransitionRates, see mio::TransitionRate.
Definition: smm/parameters.h:70
std::vector< TransitionRate< FP, Status, Region > > Type
Definition: smm/parameters.h:71
static const std::string name()
Definition: smm/parameters.h:72