Boost C++ Libraries

...one 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 a snapshot of the develop branch, built from commit f5a2dc2871.
PrevUpHomeNext

Function rebin

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

Synopsis

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


reduce_command rebin(unsigned iaxis, unsigned merge);

Description

Command is applied to axis with given index.

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.

Parameters:

iaxis

which axis to operate on.

merge

how many adjacent bins to merge into one.


PrevUpHomeNext