boost::accumulators::extract::sum_of_weights
// In header: <boost/accumulators/statistics/sum.hpp> extractor< sum_of_weights;