Expand description
Rebinning: coarsen the TOF axis by an integer factor.
Counts in adjacent bins are summed, and the merged bins keep every
factor-th edge. Rebinning needs bin edges: a merged bin’s position
depends on the widths of the bins it merges, which centres do not give.
Functions§
- rebin_
counts - Rebin a 3D counts array along axis 0 by summing groups of
factorslices. - rebin_
edges - Rebin bin edges by keeping every
factor-th edge, always including the final edge.