Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
income_category_layout.h File Reference
#include "forward_type.h"
#include <cstddef>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for income_category_layout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hgps::core::IncomeCategoryLayout
 Ordered final income buckets for project_requirements.income.categories (3, 4, or 5). More...
 

Namespaces

namespace  hgps
 Top-level namespace for Health-GPS Console host application.
 
namespace  hgps::core
 Top-level namespace for Health-GPS Core C++ API.
 

Functions

IncomeCategoryLayout hgps::core::income_category_layout_from_config (std::string_view categories)
 Parse project_requirements.income.categories ("3", "4", or "5").
 
std::size_t hgps::core::income_table_index (Income income, const IncomeCategoryLayout &layout)
 Map person.income to a 0-based table index for the configured layout.
 
Income hgps::core::income_from_equal_split_bucket (std::size_t bucket, const IncomeCategoryLayout &layout)
 Map equal-split rank bucket (0..count-1) to Income enum.
 
double hgps::core::income_category_numeric (Income income, const IncomeCategoryLayout &layout)
 Project-aware numeric encoding for analysis/output (legacy 3/4 mapping preserved).