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 an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function shrink_and_rebin

boost::histogram::algorithm::shrink_and_rebin — Shrink and rebin option to be used in reduce().

Synopsis

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


reduce_option 
shrink_and_rebin(unsigned iaxis, double lower, double upper, unsigned merge);

Description

To shrink and rebin in one command. Equivalent to passing both the shrink() and the rebin() option for the same axis to reduce.

Parameters:

iaxis

which axis to operate on.

lower

lowest bound that should be kept.

merge

how many adjacent bins to merge into one.

upper

highest bound that should be kept. If upper is inside bin interval, the whole interval is removed.


PrevUpHomeNext