Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

Function rebin

boost::histogram::algorithm::rebin — Rebin command to be used in reduce.


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

reduce_command rebin(unsigned merge);


Command is applied to corresponding axis in order of reduce arguments.

The command merges N adjacent bins into one. This makes the axis coarser and the bins wider. The original number of bins is divided by N. If there is a rest to this devision, the axis is implicitly shrunk at the upper end by that rest.



how many adjacent bins to merge into one.