pub fn rebin_counts(data: &Array3<f64>, factor: usize) -> Array3<f64>Expand description
Rebin a 3D counts array along axis 0 by summing groups of factor slices.
Remainder slices at the end are summed into the last output bin.
Returns the original array unchanged if factor < 2.
NaN handling: NaN values propagate through the sum — any NaN in a group produces NaN in that output bin. This matches ndarray semantics.