Helpers for assigning values to histogram bins. More...
Functions | |
| template<class E1, class E2> | |
| auto | xt::digitize (E1 &&data, E2 &&bin_edges, bool right=false) |
| Return the indices of the bins to which each value in input array belongs. | |
Helpers for assigning values to histogram bins.
|
inline |
Return the indices of the bins to which each value in input array belongs.
| data | The data. |
| bin_edges | The bin-edges. It has to be 1-dimensional and monotonic. |
| right | Indicating whether the intervals include the right or the left bin edge. |
Definition at line 41 of file xhistogram.hpp.