adoption_rate.h Source File

CPP API: adoption_rate.h Source File
adoption_rate.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2020-2026 MEmilio
3 *
4 * Authors: René Schmieding, Julia Bicker, Kilian Volmer
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 #ifndef MIO_EPI_ADOPTIONRATE_H
21 #define MIO_EPI_ADOPTIONRATE_H
22 
24 #include <vector>
25 
26 namespace mio
27 {
28 
34 template <typename FP, class Status>
35 struct Influence {
36  Status status;
37  FP factor;
38 };
39 
48 template <typename FP, class Status, class Region = mio::regions::Region>
49 struct AdoptionRate {
50  Status from; // i
51  Status to; // j
52  Region region; // k
53  FP factor; // gammahat_{ij}^k
54  std::vector<Influence<FP, Status>> influences; // influences[tau] = ( Psi_{i,j,tau} , gamma_{i,j,tau} )
55 };
56 
57 } // namespace mio
58 
59 #endif
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Struct defining a possible status adoption in a Model based on Poisson Processes.
Definition: adoption_rate.h:49
Status from
Definition: adoption_rate.h:50
Region region
Definition: adoption_rate.h:52
std::vector< Influence< FP, Status > > influences
Definition: adoption_rate.h:54
Status to
Definition: adoption_rate.h:51
FP factor
Definition: adoption_rate.h:53
Struct defining an influence for a second-order adoption.
Definition: adoption_rate.h:35
Status status
Definition: adoption_rate.h:36
FP factor
Definition: adoption_rate.h:37