boostorg / histogram

Fast multi-dimensional generalized histogram with convenient interface for C++14
Boost Software License 1.0
315 stars 71 forks source link

Bug-fix for one-sided cropping #302

Closed HDembinski closed 3 years ago

HDembinski commented 3 years ago

Fixes a bug when reduce is used with one-sided crop, where "one-sided" means that the cropping is supposed to remove only the upper part of an axis including the overflow bin, but keep the lower end including the underflow bin or vice versa.

The current (wrong) behavior of crop is to always remove the *flow contents on both ends.