Skip to main content

rebin_centers

Function rebin_centers 

Source
pub fn rebin_centers(centers: &[f64], factor: usize) -> Vec<f64>
Expand description

Rebin bin centers by averaging each group of factor centers.

Returns the original centers unchanged if factor < 2.