diff --git a/include/barry/model-bones.hpp b/include/barry/model-bones.hpp index 69a43b49c..a23aac7c2 100644 --- a/include/barry/model-bones.hpp +++ b/include/barry/model-bones.hpp @@ -380,7 +380,9 @@ class Model { */ ///@{ std::vector< std::vector< double > > * get_stats_target(); - std::vector< double > * get_stats_support(); + std::vector< double > * get_stats_support(); ///< Sufficient statistics of the support(s) + std::vector< size_t > * get_stats_support_sizes(); ///< Number of vectors included in the support. + std::vector< size_t > * get_stats_support_sizes_acc(); ///< Accumulated number of vectors included in the support. std::vector< size_t > * get_arrays2support(); std::vector< std::vector< Array_Type > > * get_pset_arrays(); std::vector< std::vector > * get_pset_stats(); ///< Statistics of the support(s) diff --git a/include/barry/model-meat.hpp b/include/barry/model-meat.hpp index b3c550ca4..c54d6f1d5 100644 --- a/include/barry/model-meat.hpp +++ b/include/barry/model-meat.hpp @@ -1553,6 +1553,22 @@ Model::get_sta return &stats_support; } +// Implementation of get_stats_support_sizes() +template +inline std::vector< size_t > * +Model::get_stats_support_sizes() +{ + return &stats_support_sizes; +} + +// Implementation of get_stats_support_sizes_acc() +template +inline std::vector< size_t > * +Model::get_stats_support_sizes_acc() +{ + return &stats_support_sizes_acc; +} + template inline std::vector< size_t > * Model::get_arrays2support()