pub fn peak_prominences(
x: &[f64],
peaks: &[usize],
wlen: Option<f64>,
) -> Result<Prominences, ErrorsJSL>Expand description
The prominence of each peak (SciPy’s peak_prominences).
From the peak, walk left while the signal stays at or below the peak, and record the lowest
value passed; do the same to the right. The walk stops at a higher sample or at the edge of
the window wlen centred on the peak. The higher of the two minima is the key col, and the
prominence is the peak’s height above it.