|
template<class T_Stream , typename T_Counter > |
T_Stream & | TableUtils::dumpTable (T_Stream &out, Range< T_Counter > counter, const Range< std::string > &label, const std::string &label_prefix, const std::size_t column_width, const std::size_t min_label_width, const bool dump_footer, const bool separate_last_row, const unsigned int precision) |
|
template<class T_Stream , typename T_Counter > |
T_Stream & | TableUtils::dumpTable (T_Stream &out, Range2D< T_Counter > counter, const Range< std::string > &row_label, const Range< std::string > &column_label, const std::string &top_left_label, const std::string &label_prefix, const std::size_t column_width, const std::size_t min_label_width, const bool dump_header, const bool dump_footer, const bool separate_last_row, const std::vector< unsigned int > &precision) |
|
template<typename T_index , class T_string > |
std::vector< std::string > | TableUtils::makeLabelVector (T_index n_entries, std::initializer_list< std::pair< T_index, T_string > > a_list) |
|
template<class T_Collection > |
std::size_t | TableUtils::maxLabelWidth (const T_Collection &col) |
|
constexpr std::size_t | TableUtils::categoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::size_t n_counter) |
|
constexpr std::size_t | TableUtils::subCategoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::size_t n_counter) |
|
constexpr std::size_t | TableUtils::counterStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::size_t n_counter) |
|
template<typename T_Output , typename T_Input , const std::size_t N> |
std::vector< T_Output > | TableUtils::createCounterArrayWithProjections (const std::size_t categories, const std::size_t sub_categories, const std::vector< std::array< T_Input, N > > &input_counts) |
|
template<typename T > |
RatioDefinition | TableUtils::defineSimpleRatio (T numerator, T denominator) |
|
template<typename T > |
std::tuple< std::string, RatioDefinition > | TableUtils::defineSimpleRatio (std::string &&name, T numerator, T denominator) |
|
template<typename T > |
SummandDefinition | TableUtils::defineSummand (T counter_idx, int multiplier) |
|
std::size_t | TableUtils::computeSum (const std::vector< SummandDefinition > &sum_def, std::size_t eta_offset, std::size_t row_stride, std::size_t seed_i, const std::vector< std::size_t > &stat) |
|
float | TableUtils::computeRatio (std::size_t numerator, std::size_t denominator) |
|
float | TableUtils::computeRatio (const RatioDefinition &ratio_def, std::size_t eta_offset, std::size_t row_stride, std::size_t seed_i, const std::vector< std::size_t > &stat) |
|
std::tuple< std::string, RatioDefinition > | TableUtils::makeRatioDefinition (std::string &&name, std::vector< SummandDefinition > &&numerator, std::vector< SummandDefinition > &&denominator) |
|
std::tuple< std::vector< std::string >, std::vector< RatioDefinition > > | TableUtils::splitRatioDefinitionsAndLabels (std::initializer_list< std::tuple< std::string, RatioDefinition > > a_ratio_list) |
|
constexpr std::size_t | TableUtils::categoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def) |
|
std::size_t | TableUtils::subCategoryStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def) |
|
constexpr std::size_t | TableUtils::ratioStride ([[maybe_unused]] const std::size_t categories, [[maybe_unused]] const std::size_t sub_categories, [[maybe_unused]] const std::vector< RatioDefinition > &ratio_def) |
|
std::vector< float > | TableUtils::computeRatios (const std::vector< RatioDefinition > &ratio_def, const std::size_t categories, const std::size_t sub_categories, const std::vector< std::size_t > &counter) |
|
std::string | TableUtils::makeBinLabel (const std::string &variable_name, const std::vector< float > &bins, std::size_t bin_i, bool abs_value=false, int precision=1) |
|
std::string | TableUtils::makeEtaBinLabel (const std::vector< float > &eta_bins, std::size_t eta_bin_i, bool abs_eta=false) |
|
template<typename T , std::size_t N> |
TableUtils::StatTable< T > | makeTable (const std::array< T, N > &counter, const std::array< std::string, N > &label) |
|
template<typename T , std::size_t Nrows, std::size_t Ncolumns> |
TableUtils::MultiColumnTable< T > | makeTable (const std::array< std::array< T, Ncolumns >, Nrows > &counter, const std::array< std::string, Nrows > &row_label, const std::array< std::string, Ncolumns > &column_label, const std::string &top_left_label="") |
|
template<typename T > |
TableUtils::MultiColumnTable< T > | makeTable (const std::vector< T > &counter, std::size_t start_idx, std::size_t row_stride, const std::vector< std::string > &row_label, const std::vector< std::string > &column_label, const std::string &top_left_label="") |
|
template<typename T , std::size_t N> |
TableUtils::MultiColumnTable< T > | makeTable (const std::vector< std::array< T, N > > &counter, std::size_t start_row_idx, std::size_t row_stride, std::size_t start_column_idx, std::size_t column_stride, const std::vector< std::string > &row_label, const std::vector< std::string > &column_label, const std::string &top_left_label="") |
|
template<typename T > |
TableUtils::MultiColumnTable< T > | makeTable (const std::vector< T > &counter, const std::vector< std::string > &row_label, const std::vector< std::string > &column_label, const std::string &top_left_label="") |
|
template<typename T > |
std::ostream & | operator<< (std::ostream &out, const TableUtils::StatTable< T > &stat) |
|
template<typename T > |
std::ostream & | operator<< (std::ostream &out, const TableUtils::MultiColumnTable< T > &stat) |
|