Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
hgps::LmsModel Class Reference

Implements the LMS (lambda-mu-sigma) model for children growth. More...

#include <lms_model.h>

Public Member Functions

 LmsModel ()=delete
 
 LmsModel (LmsDefinition &definition)
 Initialises a new instance of the LmsModel class. More...
 
unsigned int child_cutoff_age () const noexcept
 Gets the children cut-off age (before adult) More...
 
WeightCategory classify_weight (const Person &entity) const
 Classify a person weight according with the predefined categories. More...
 
double adjust_risk_factor_value (const Person &entity, const core::Identifier &factor_key, double value) const
 Adjust a Person risk factor value. More...
 

Detailed Description

Implements the LMS (lambda-mu-sigma) model for children growth.

Constructor & Destructor Documentation

◆ LmsModel() [1/2]

hgps::LmsModel::LmsModel ( )
delete

◆ LmsModel() [2/2]

hgps::LmsModel::LmsModel ( LmsDefinition definition)

Initialises a new instance of the LmsModel class.

Parameters
definitionThe model definition
Exceptions
std::invalid_argumentfor definition that don't include the child cut-off age.

Member Function Documentation

◆ adjust_risk_factor_value()

double hgps::LmsModel::adjust_risk_factor_value ( const Person entity,
const core::Identifier factor_key,
double  value 
) const

Adjust a Person risk factor value.

Parameters
entityThe Person instance to adjust
factor_keyThe risk factor identifier
valueThe amount of adjustment value
Returns
The adjusted risk factor value
Exceptions
std::out_of_rangefor unknown weight category definition

◆ child_cutoff_age()

unsigned int hgps::LmsModel::child_cutoff_age ( ) const
noexcept

Gets the children cut-off age (before adult)

Returns
The cut-off age for children

◆ classify_weight()

WeightCategory hgps::LmsModel::classify_weight ( const Person entity) const

Classify a person weight according with the predefined categories.

Parameters
entityThe Person instance to classify
Returns
The respective weight classification
Here is the call graph for this function:

The documentation for this class was generated from the following files: