1 #ifndef BARRY_STATSCOUNTER_BONES_HPP
2 #define BARRY_STATSCOUNTER_BONES_HPP 1
13 template <
typename Array_Type,
typename Data_Type>
19 const Array_Type * Array;
20 Array_Type EmptyArray;
21 std::vector< double > current_stats;
25 bool counter_deleted =
false;
27 std::vector< double > count_all_dense();
28 std::vector< double > count_all_sparse();
Baseline class for binary arrays.
A counter function based on change statistics.
Data class used to store arbitrary size_t or double vectors.
Count stats for a single Array.
std::vector< std::string > get_descriptions() const
void count_current(size_t i, size_t j)
void set_counters(Counters< Array_Type, Data_Type > *counters_)
StatsCounter()
Can be created without setting the array.
std::vector< double > count_all()
void count_init(size_t i, size_t j)
Counter functions This function recurses through the entries of Array and at each step of adding a ne...
void reset_array(const Array_Type *Array_)
Changes the reference array for the counting.
std::vector< std::string > get_names() const
StatsCounter(const Array_Type *Array_)
Creator of a StatsCounter
void add_counter(Counter< Array_Type, Data_Type > f_)
Counters< Array_Type, Data_Type > * get_counters()
StatsCounter(const StatsCounter< Array_Type, Data_Type > &counter)
Copy constructor.