Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
model_result.h
Go to the documentation of this file.
1#pragma once
2#include "data_series.h"
3#include "gender_value.h"
4
5#include <map>
6#include <optional>
7#include <string>
8#include <vector>
9
10namespace hgps {
11
14
16 double male{};
17
19 double female{};
20};
21
25 double low{};
27 double lowermiddle{};
29 double middle{};
31 double uppermiddle{};
33 double high{};
34};
35
49
61
64 ModelResult() = delete;
65
68 ModelResult(const unsigned int sample_size);
69
72
75
78
81
84
87
89 std::map<std::string, ResultByGender> risk_ractor_average{};
90
92 std::map<std::string, ResultByGender> disease_prevalence{};
93
95 std::map<unsigned int, ResultByGender> comorbidity{};
96
98 std::map<std::string, double> metrics{};
99
102
104 std::optional<ResultByIncome> population_by_income{};
105 std::optional<std::map<std::string, ResultByIncomeGender>> risk_factor_average_by_income{};
106 std::optional<std::map<std::string, ResultByIncomeGender>> disease_prevalence_by_income{};
107 std::optional<std::map<unsigned int, ResultByIncomeGender>> comorbidity_by_income{};
108
111 std::string to_string() const noexcept;
112
115 int number_of_recyclable() const noexcept;
116
117 private:
118 std::size_t caluclate_min_padding() const noexcept;
119};
120} // namespace hgps
Defines the Simulation results container for time series data.
Definition data_series.h:16
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:8
Global namespace.
Definition column_iterator.h:123
Defines the DALYs indicator result data type.
Definition model_result.h:51
double disability_adjusted_life_years
Disability adjusted life years (DALY) value.
Definition model_result.h:59
double years_of_life_lost
Years of life lost (YLL) value.
Definition model_result.h:53
double years_lived_with_disability
Years lived with disability (YLD) value.
Definition model_result.h:56
Defines the model results data type.
Definition model_result.h:63
std::map< unsigned int, ResultByGender > comorbidity
Average comorbidity in population.
Definition model_result.h:95
DALYsIndicator indicators
The DALYs indicator.
Definition model_result.h:86
std::string to_string() const noexcept
Gets a string representation of this instance.
Definition model_result.cpp:9
int population_size
Total population size.
Definition model_result.h:71
std::map< std::string, double > metrics
Simulation runtime metrics.
Definition model_result.h:98
ResultByGender average_age
Average age of the population.
Definition model_result.h:83
DataSeries series
The detailed time series data results.
Definition model_result.h:101
std::optional< std::map< std::string, ResultByIncomeGender > > disease_prevalence_by_income
Definition model_result.h:106
int number_of_recyclable() const noexcept
Gets the number of recycled population slots due to deaths and emigration.
Definition model_result.cpp:38
std::map< std::string, ResultByGender > disease_prevalence
Average diseases prevalence value in population.
Definition model_result.h:92
int number_emigrated
The number of emigrants in the population.
Definition model_result.h:80
std::optional< std::map< unsigned int, ResultByIncomeGender > > comorbidity_by_income
Definition model_result.h:107
std::optional< std::map< std::string, ResultByIncomeGender > > risk_factor_average_by_income
Definition model_result.h:105
std::optional< ResultByIncome > population_by_income
Income-based results (only populated if income analysis enabled in model_input.h)
Definition model_result.h:104
IntegerGenderValue number_alive
The number of people alive in the population.
Definition model_result.h:74
int number_dead
The number of dead in the population.
Definition model_result.h:77
ModelResult()=delete
std::map< std::string, ResultByGender > risk_ractor_average
Average risk factors value in population.
Definition model_result.h:89
Defines the measure by gender result data type.
Definition model_result.h:13
double female
Female value.
Definition model_result.h:19
double male
Male value.
Definition model_result.h:16
Defines the measure by income and gender result data type.
Definition model_result.h:37
ResultByGender lowermiddle
Lower middle income values by gender (4-category system)
Definition model_result.h:41
ResultByGender middle
Middle income values by gender (3-category system)
Definition model_result.h:43
ResultByGender high
High income values by gender.
Definition model_result.h:47
ResultByGender low
Low income values by gender.
Definition model_result.h:39
ResultByGender uppermiddle
Upper middle income values by gender (4-category system)
Definition model_result.h:45
Defines the measure by income result data type.
Definition model_result.h:23
double uppermiddle
Upper middle income value (4-category system)
Definition model_result.h:31
double high
High income value.
Definition model_result.h:33
double middle
Middle income value (3-category system)
Definition model_result.h:29
double low
Low income value.
Definition model_result.h:25
double lowermiddle
Lower middle income value (4-category system)
Definition model_result.h:27