A collection of data in stages, where each stage can store multiple data items and multiple estimators. More...
#include <rgrl_data_manager.h>
Public Types | |
typedef vcl_vector < rgrl_data_manager_data_item > | data_vector |
typedef vcl_map< unsigned, data_vector > | data_map |
typedef vcl_vector < rgrl_estimator_sptr > | estimator_vector |
typedef vcl_map< unsigned, estimator_vector > | estimator_map |
Public Member Functions | |
data_vector & | operator[] (unsigned i) |
same as std::map[]. | |
data_vector const & | operator[] (unsigned i) const |
Assumes the key is in the map. | |
bool | has (unsigned i) const |
true iff the key is in the map. | |
void | add_estimator (unsigned i, rgrl_estimator_sptr estimator) |
bool | has_estimator_hierarchy (unsigned i) const |
true iff the key is in the map. | |
estimator_vector const & | estimator_hierarchy (unsigned i) const |
Assume the key is in the map. | |
void | set_dimension_increase_for_next_stage (unsigned i, double rate) |
Set dimension increase to go from the current stage to the next. | |
double | dimension_increase_for_next_stage (unsigned i) const |
Get dim_increase_for_next_stage. | |
Private Attributes | |
data_map | map_ |
estimator_map | estimators_ |
vcl_map< unsigned, double > | dim_increase_for_next_stage_ |
A collection of data in stages, where each stage can store multiple data items and multiple estimators.
Definition at line 67 of file rgrl_data_manager.h.
typedef vcl_map< unsigned, data_vector > rgrl_data_manager_data_storage::data_map |
Definition at line 71 of file rgrl_data_manager.h.
typedef vcl_vector< rgrl_data_manager_data_item > rgrl_data_manager_data_storage::data_vector |
Definition at line 70 of file rgrl_data_manager.h.
typedef vcl_map< unsigned, estimator_vector > rgrl_data_manager_data_storage::estimator_map |
Definition at line 73 of file rgrl_data_manager.h.
typedef vcl_vector< rgrl_estimator_sptr > rgrl_data_manager_data_storage::estimator_vector |
Definition at line 72 of file rgrl_data_manager.h.
void rgrl_data_manager_data_storage::add_estimator | ( | unsigned | i, |
rgrl_estimator_sptr | estimator | ||
) | [inline] |
Definition at line 94 of file rgrl_data_manager.h.
double rgrl_data_manager_data_storage::dimension_increase_for_next_stage | ( | unsigned | i | ) | const [inline] |
Get dim_increase_for_next_stage.
Definition at line 118 of file rgrl_data_manager.h.
estimator_vector const& rgrl_data_manager_data_storage::estimator_hierarchy | ( | unsigned | i | ) | const [inline] |
Assume the key is in the map.
Definition at line 106 of file rgrl_data_manager.h.
bool rgrl_data_manager_data_storage::has | ( | unsigned | i | ) | const [inline] |
true iff the key is in the map.
Definition at line 88 of file rgrl_data_manager.h.
bool rgrl_data_manager_data_storage::has_estimator_hierarchy | ( | unsigned | i | ) | const [inline] |
true iff the key is in the map.
Definition at line 100 of file rgrl_data_manager.h.
data_vector& rgrl_data_manager_data_storage::operator[] | ( | unsigned | i | ) | [inline] |
same as std::map[].
Definition at line 76 of file rgrl_data_manager.h.
data_vector const& rgrl_data_manager_data_storage::operator[] | ( | unsigned | i | ) | const [inline] |
Assumes the key is in the map.
Definition at line 82 of file rgrl_data_manager.h.
void rgrl_data_manager_data_storage::set_dimension_increase_for_next_stage | ( | unsigned | i, |
double | rate | ||
) | [inline] |
Set dimension increase to go from the current stage to the next.
Definition at line 112 of file rgrl_data_manager.h.
vcl_map< unsigned, double > rgrl_data_manager_data_storage::dim_increase_for_next_stage_ [private] |
Definition at line 126 of file rgrl_data_manager.h.
Definition at line 125 of file rgrl_data_manager.h.
data_map rgrl_data_manager_data_storage::map_ [private] |
Definition at line 124 of file rgrl_data_manager.h.