Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
analysis.h
Go to the documentation of this file.
1 #pragma once
2 #include "forward_type.h"
3 #include <map>
4 #include <string>
5 #include <vector>
6 
7 namespace hgps::core {
8 
12  int at_time{};
13 
15  float both{};
16 
18  float male{};
19 
21  float female{};
22 };
23 
27  std::map<std::string, float> disability_weights{};
28 
30  std::vector<LifeExpectancyItem> life_expectancy{};
31 
33  std::map<int, std::map<Gender, double>> cost_of_diseases{};
34 
37  bool empty() const noexcept { return cost_of_diseases.empty() || life_expectancy.empty(); }
38 };
39 
41 struct LmsDataRow {
43  int age{};
44 
47 
49  double lambda{};
50 
52  double mu{};
53 
55  double sigma{};
56 };
57 } // namespace hgps::core
Top-level namespace for Health-GPS Core C++ API.
Definition: analysis.h:7
Gender
Enumerates gender types.
Definition: forward_type.h:18
Burden of Diseases (BoD) analysis for a country data structure.
Definition: analysis.h:25
bool empty() const noexcept
Checks whether the disease analysis definition is empty.
Definition: analysis.h:37
std::vector< LifeExpectancyItem > life_expectancy
Collection of life expectancy indicators.
Definition: analysis.h:30
std::map< int, std::map< Gender, double > > cost_of_diseases
The cost of disease lookup table by age and gender.
Definition: analysis.h:33
std::map< std::string, float > disability_weights
Diseases disability weight value.
Definition: analysis.h:27
Life expectancy item for a country data structure.
Definition: analysis.h:10
float female
Male life expectancy.
Definition: analysis.h:21
float male
Male life expectancy.
Definition: analysis.h:18
float both
Both sexes life expectancy.
Definition: analysis.h:15
int at_time
Reference time.
Definition: analysis.h:12
LMS (lambda-mu-sigma) parameters data structure.
Definition: analysis.h:41
int age
Reference age.
Definition: analysis.h:43
double mu
Mu parameter value.
Definition: analysis.h:52
double sigma
Sigma parameter value.
Definition: analysis.h:55
Gender gender
Reference gender identifier.
Definition: analysis.h:46
double lambda
Lambda parameter value.
Definition: analysis.h:49