Skip to main content

peak_search_range

Function peak_search_range 

Source
pub fn peak_search_range(
    y: &[f64],
    fwhm: f64,
    sensitivity: f64,
    begin_index: usize,
    end_index: usize,
) -> Vec<Peak>
Expand description

Search y[begin_index..=end_index] for peaks (silx C seek).

fwhm is the expected peak full-width at half maximum (in samples) used for the Gaussian smoothing; sensitivity is the significance threshold (a peak must exceed sensitivity standard deviations). Returns the located peaks in ascending index order; empty when the data is too short or no peak clears the threshold.