LMS (lambda-mu-sigma) model definition data type.
More...
#include <lms_definition.h>
LMS (lambda-mu-sigma) model definition data type.
◆ LmsDefinition() [1/2]
hgps::LmsDefinition::LmsDefinition |
( |
| ) |
|
|
default |
◆ LmsDefinition() [2/2]
hgps::LmsDefinition::LmsDefinition |
( |
LmsDataset && |
dataset | ) |
|
|
inline |
Initialises a new instance of the LmsDefinition class.
- Parameters
-
dataset | The dataset instance to initialise |
- Exceptions
-
std::invalid_argument | for empty LMS dataset definition. |
◆ at()
Gets the model parameters for a given age and gender.
- Parameters
-
age | The age reference |
gender | The gender reference |
- Returns
- The model parameters
- Exceptions
-
std::out_of_range | if the definition does not contains the specified age or gender |
◆ contains()
bool hgps::LmsDefinition::contains |
( |
unsigned int |
age, |
|
|
core::Gender |
gender |
|
) |
| const |
|
inlinenoexcept |
Determine whether the definition contains a given age by gender.
- Parameters
-
age | The age reference |
gender | The gender reference |
- Returns
- true if the definition contains the age; otherwise, false
◆ empty()
bool hgps::LmsDefinition::empty |
( |
| ) |
const |
|
inlinenoexcept |
Determine whether the MLS definition is empty.
- Returns
- true if the definition is empty; otherwise, false
◆ max_age()
unsigned int hgps::LmsDefinition::max_age |
( |
| ) |
const |
|
inlinenoexcept |
Gets the definition maximum age.
- Returns
- Maximum age value
◆ min_age()
unsigned int hgps::LmsDefinition::min_age |
( |
| ) |
const |
|
inlinenoexcept |
Gets the definition minimum age.
- Returns
- Minimum age value
◆ size()
std::size_t hgps::LmsDefinition::size |
( |
| ) |
const |
|
inlinenoexcept |
Gets the size of the MLS definition dataset.
- Returns
- The size of the definition dataset
The documentation for this class was generated from the following file: