38 std::vector<double> &
at(
core::Gender gender,
const std::string &key);
46 const std::vector<double> &
at(
core::Gender gender,
const std::string &key)
const;
65 const std::string &key)
const;
69 const std::vector<std::string> &
channels() const noexcept;
88 const
std::vector<
core::Income> &income_categories);
92 std::
size_t size() const noexcept;
117 std::
size_t sample_size_;
118 std::vector<
std::
string> channels_;
std::vector< double > & at(core::Gender gender, const std::string &key)
Gets a reference to a channel by Gender and identifier.
Definition data_series.cpp:32
std::size_t sample_size() const noexcept
Gets the channels sample size, number of points per channel.
Definition data_series.cpp:147
void add_channel(std::string key)
Adds a new channel to the collection.
Definition data_series.cpp:70
bool has_income_category(core::Gender gender, core::Income income) const
Checks if an income category exists for a given gender.
Definition data_series.cpp:166
std::vector< core::Income > get_available_income_categories() const
Gets available income categories from the data.
Definition data_series.cpp:149
void add_income_channels_for_categories(const std::vector< std::string > &keys, const std::vector< core::Income > &income_categories)
Adds income-based channels for specific income categories.
Definition data_series.cpp:122
std::size_t size() const noexcept
Gets the size of the channels collection.
Definition data_series.cpp:145
void add_income_channels(const std::vector< std::string > &keys)
Adds income-based channels to the collection.
Definition data_series.cpp:94
const std::vector< std::string > & channels() const noexcept
Gets the collection of channel identifiers.
Definition data_series.cpp:68
void add_channels(const std::vector< std::string > &keys)
Adds multiple channels to the collection.
Definition data_series.cpp:81
std::vector< double > & operator()(core::Gender gender, const std::string &key)
Gets a reference to a channel by Gender and identifier.
Definition data_series.cpp:28
std::string income_category_to_string(core::Income income) const
Converts income category enum to string representation.
Definition data_series.cpp:190
bool has_income_channel(core::Gender gender, core::Income income, const std::string &key) const
True if an income-stratified channel key exists (gender, income, key).
Definition data_series.cpp:176
Top-level namespace for Health-GPS Core C++ API.
Definition analysis.h:7
Gender
Enumerates gender types.
Definition forward_type.h:18
Income
Enumerates income categories.
Definition forward_type.h:51
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:9
Global namespace.
Definition column_iterator.h:123