pub fn rebin_edges(edges: &[f64], factor: usize) -> Vec<f64>Expand description
Rebin bin edges by keeping every factor-th edge, always including
the final edge.
Input: N+1 edges for N bins. Output: ceil(N/factor)+1 edges for ceil(N/factor) bins.
Returns the original edges unchanged if factor < 2.