Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
income_category_layout.cpp File Reference
#include "income_category_layout.h"
#include "exception.h"
#include <fmt/core.h>
Include dependency graph for income_category_layout.cpp:

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).