Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function pick

boost::histogram::algorithm::pick — Pick command to be used in reduce.

Synopsis

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


reduce_command 
pick(std::vector< axis::index_type > indices, 
     slice_mode mode = slice_mode::shrink);

Description

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

Picking selects an arbitrary subset of bins by index, see pick(unsigned, std::vector<axis::index_type>, slice_mode) for details.

Parameters:

indices

indices of the bins to keep, must be unique.

mode

whether to behave like shrink orcrop regarding removed bins.


PrevUpHomeNext