Boost C++ 库

...是全球备受推崇且设计精湛的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

重新分箱函数 (rebin) - Boost C++ 函数库
PrevUpHomeNext

重新分箱函数 (rebin)

boost::histogram::algorithm::rebin — 用于 reduce 命令中的重新分箱指令。

提要

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


reduce_command rebin(unsigned iaxis, unsigned merge);

描述

命令应用于具有给定索引的轴。

该指令将 N 个相邻的箱合并成一个。这将使坐标轴变粗糙,箱变宽。原始箱的数量除以 N。如果此除法有余数,则坐标轴将在上端被该余数隐式收缩。

参数

iaxis

要操作的轴。

merge

将多少个相邻箱子合并为一个。


PrevUpHomeNext