pub fn peaks(magnitude: &[f64]) -> Vec<usize>Expand description
The bins that are local maxima, strongest first.
A bin is a peak when it stands above both neighbours; the first and last bins qualify on their one neighbour alone. Equal peaks keep bin order, so the answer is stable.
Indices rather than values, like every reducer in this crate: the caller reads its own columns at the bins it is handed.