pub fn rebin_centers(centers: &[f64], factor: usize) -> Vec<f64>
Rebin bin centers by averaging each group of factor centers.
factor
Returns the original centers unchanged if factor < 2.
factor < 2