Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
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 <string>
7 #include <vector>
8 
9 namespace hgps {
10 
13 
15  double male{};
16 
18  double female{};
19 };
20 
25 
28 
31 };
32 
34 struct ModelResult {
35  ModelResult() = delete;
36 
39  ModelResult(const unsigned int sample_size);
40 
43 
46 
48  int number_dead{};
49 
52 
55 
58 
60  std::map<std::string, ResultByGender> risk_ractor_average{};
61 
63  std::map<std::string, ResultByGender> disease_prevalence{};
64 
66  std::map<unsigned int, ResultByGender> comorbidity{};
67 
69  std::map<std::string, double> metrics{};
70 
73 
76  std::string to_string() const noexcept;
77 
80  int number_of_recyclable() const noexcept;
81 
82  private:
83  std::size_t caluclate_min_padding() const noexcept;
84 };
85 } // namespace hgps
Defines the Simulation results container for time series data.
Definition: data_series.h:16
Top-level namespace for Health-GPS C++ API.
Definition: analysis_definition.h:8
Global namespace.
Definition: jsonparser.h:88
Defines the DALYs indicator result data type.
Definition: model_result.h:22
double disability_adjusted_life_years
Disability adjusted life years (DALY) value.
Definition: model_result.h:30
double years_of_life_lost
Years of life lost (YLL) value.
Definition: model_result.h:24
double years_lived_with_disability
Years lived with disability (YLD) value.
Definition: model_result.h:27
Defines the model results data type.
Definition: model_result.h:34
std::map< unsigned int, ResultByGender > comorbidity
Average comorbidity in population.
Definition: model_result.h:66
DALYsIndicator indicators
The DALYs indicator.
Definition: model_result.h:57
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:42
std::map< std::string, double > metrics
Simulation runtime metrics.
Definition: model_result.h:69
ResultByGender average_age
Average age of the population.
Definition: model_result.h:54
DataSeries series
The detailed time series data results.
Definition: model_result.h:72
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:63
int number_emigrated
The number of emigrants in the population.
Definition: model_result.h:51
IntegerGenderValue number_alive
The number of people alive in the population.
Definition: model_result.h:45
int number_dead
The number of dead in the population.
Definition: model_result.h:48
ModelResult()=delete
std::map< std::string, ResultByGender > risk_ractor_average
Average risk factors value in population.
Definition: model_result.h:60
Defines the measure by gender result data type.
Definition: model_result.h:12
double female
Female value.
Definition: model_result.h:18
double male
Male value.
Definition: model_result.h:15