Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template reduce

boost::histogram::algorithm::reduce — Shrink and/or rebin axes of a histogram.

Synopsis

// In header: <boost/histogram/algorithm/reduce.hpp>


template<typename Histogram, typename Iterable> 
  decltype(auto) reduce(const Histogram & hist, const Iterable & options);

Description

Returns the reduced copy of the histogram.

Parameters:

hist

original histogram.

options

iterable sequence of reduce_options, generated by shrink_and_rebin(), shrink(), and rebin().


PrevUpHomeNext