Skip to main content

find_peaks

Function find_peaks 

Source
pub fn find_peaks(x: &[f64], options: &PeakOptions) -> Result<Peaks, ErrorsJSL>
Expand description

The peaks of x that satisfy the criteria in options (SciPy’s find_peaks).

Candidates are the local maxima (local_maxima). The criteria are applied in SciPy’s order, cheapest first: plateau size, height, threshold, distance, prominence, width. The distance criterion removes peaks, so prominences and widths are computed only for the survivors.