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_;
119 std::map<core::Gender,
std::map<
std::
string,
std::vector<
double>>> data_;
120 std::map<core::Gender,
std::map<core::Income,
std::map<
std::
string,
std::vector<
double>>>>
Defines the Simulation results container for time series data.
Definition data_series.h:16
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:31
std::size_t sample_size() const noexcept
Gets the channels sample size, number of points per channel.
Definition data_series.cpp:146
void add_channel(std::string key)
Adds a new channel to the collection.
Definition data_series.cpp:69
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:165
std::vector< core::Income > get_available_income_categories() const
Gets available income categories from the data.
Definition data_series.cpp:148
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:121
std::size_t size() const noexcept
Gets the size of the channels collection.
Definition data_series.cpp:144
void add_income_channels(const std::vector< std::string > &keys)
Adds income-based channels to the collection.
Definition data_series.cpp:93
const std::vector< std::string > & channels() const noexcept
Gets the collection of channel identifiers.
Definition data_series.cpp:67
void add_channels(const std::vector< std::string > &keys)
Adds multiple channels to the collection.
Definition data_series.cpp:80
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:27
std::string income_category_to_string(core::Income income) const
Converts income category enum to string representation.
Definition data_series.cpp:189
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:175
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:8
Global namespace.
Definition column_iterator.h:123