Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
hgps::StaticHierarchicalLinearModel Class Referencefinal

Implements the static hierarchical linear model type. More...

#include <hierarchical_model_static.h>

Inheritance diagram for hgps::StaticHierarchicalLinearModel:
[legend]
Collaboration diagram for hgps::StaticHierarchicalLinearModel:
[legend]

Public Member Functions

 StaticHierarchicalLinearModel (const std::unordered_map< core::Identifier, LinearModel > &models, const std::map< int, HierarchicalLevel > &levels)
 Initialises a new instance of the StaticHierarchicalLinearModel class. More...
 
HierarchicalModelType type () const noexcept override
 Gets the model type identifier. More...
 
std::string name () const noexcept override
 Gets the model name. More...
 
void generate_risk_factors (RuntimeContext &context) override
 Generates the initial risk factors for a population and newborns. More...
 
void update_risk_factors (RuntimeContext &context) override
 Update risk factors for population. More...
 
- Public Member Functions inherited from hgps::HierarchicalLinearModel
virtual ~HierarchicalLinearModel ()=default
 Destroys a HierarchicalLinearModel instance. More...
 

Detailed Description

Implements the static hierarchical linear model type.

The static model is used to initialise the virtual population, the model uses principal component analysis for residual normalisation.

Constructor & Destructor Documentation

◆ StaticHierarchicalLinearModel()

hgps::StaticHierarchicalLinearModel::StaticHierarchicalLinearModel ( const std::unordered_map< core::Identifier, LinearModel > &  models,
const std::map< int, HierarchicalLevel > &  levels 
)

Initialises a new instance of the StaticHierarchicalLinearModel class.

Parameters
modelsThe model equations
levelsThe hierarchical model level definition

Member Function Documentation

◆ generate_risk_factors()

void hgps::StaticHierarchicalLinearModel::generate_risk_factors ( RuntimeContext context)
overridevirtual

Generates the initial risk factors for a population and newborns.

Parameters
contextThe simulation run-time context

Implements hgps::HierarchicalLinearModel.

Here is the call graph for this function:

◆ name()

std::string hgps::StaticHierarchicalLinearModel::name ( ) const
overridevirtualnoexcept

Gets the model name.

Returns
The human-readable model name

Implements hgps::HierarchicalLinearModel.

◆ type()

HierarchicalModelType hgps::StaticHierarchicalLinearModel::type ( ) const
overridevirtualnoexcept

Gets the model type identifier.

Returns
The module type identifier

Implements hgps::HierarchicalLinearModel.

◆ update_risk_factors()

void hgps::StaticHierarchicalLinearModel::update_risk_factors ( RuntimeContext context)
overridevirtual

Update risk factors for population.

Parameters
contextThe simulation run-time context

Implements hgps::HierarchicalLinearModel.

Here is the call graph for this function:

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