29 std::size_t
size() const noexcept;
33 std::
size_t rows() const noexcept;
41 bool empty() const noexcept;
48 float at(const
int age, const
float value) const;
55 float operator()(const
int age, const
float value) const;
61 bool contains(const
int age, const
float value) const noexcept;
64 core::FloatArray2D table_;
65 std::map<
int,
int> rows_index_;
66 std::map<
float,
int> cols_index_;
68 float lookup_value(const
int age, const
float value) const;
Defines the age and gender lookup table data type.
Definition gender_table.h:120
Defines a monotonic vector container type.
Definition monotonic_vector.h:42
Defines the relative risk factors lookup data type.
Definition relative_risk.h:15
std::size_t size() const noexcept
Gets the number of elements in the lookup dataset.
Definition relative_risk.cpp:24
RelativeRiskLookup()=delete
float at(const int age, const float value) const
Lookup a value at specific breakpoints with bounds checking.
Definition relative_risk.cpp:34
bool empty() const noexcept
Checks if the lookup has no data.
Definition relative_risk.cpp:30
std::size_t rows() const noexcept
Gets the number of rows lookup breakpoints.
Definition relative_risk.cpp:26
bool contains(const int age, const float value) const noexcept
Checks if the lookup contains a value with specific breakpoints.
Definition relative_risk.cpp:42
std::size_t columns() const noexcept
Gets the number of columns lookup breakpoints.
Definition relative_risk.cpp:28
Defines a contiguous storage for two-dimensional numerical data in row-major format.
Definition array2d.h:15
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:8
std::map< core::Identifier, FloatAgeGenderTable > RelativeRiskTableMap
Defines the relative risk factor table type.
Definition relative_risk.h:72
std::map< core::Identifier, std::map< core::Gender, RelativeRiskLookup > > RelativeRiskLookupMap
Defines the relative risk factor lookup type.
Definition relative_risk.h:76
Global namespace.
Definition column_iterator.h:123
Defines the relative risk factors data type.
Definition relative_risk.h:79
RelativeRiskLookupMap risk_factors
Risk factor to diseases relative risk values.
Definition relative_risk.h:84
RelativeRiskTableMap diseases
Disease to diseases relative risk values.
Definition relative_risk.h:81