pub fn find_peaks_over_stddev(data: &Vec<f64>, sigmas: f64) -> Vec<GraphPeak> {
    let mean = average_f64(data);
    let stddev = sigmas * standard_deviation_f64(data, mean);
    let threshold = mean + stddev;
    let peaks = find_peaks_over_threshold(data, threshold);

    peaks
}
// Returns a list of peaks in the given vector of numeric values. Only peaks that go above the given sigma line will be counted.
Returns a list of peaks in the given vector of numeric values. Only peaks that go above the given sigma line will be counted.
Returns a list of peaks in the given vector of numeric values . Only peaks that go above the given sigma line will be counted .
pub fn find_peaks_over_stddev(data: &Vec<f64>, sigmas: f64) -> Vec<GraphPeak> {
    let mean = average_f64(data);
    let stddev = sigmas * standard_deviation_f64(data, mean);
    let threshold = mean + stddev;
    let peaks = find_peaks_over_threshold(data, threshold);
    peaks
}
pub fn find_peaks_over_stddev ( data : & Vec < f64 > , sigmas : f64 ) -> Vec < GraphPeak > { let mean = average_f64 ( data ) ; let stddev = sigmas * standard_deviation_f64 ( data , mean ) ; let threshold = mean + stddev ; let peaks = find_peaks_over_threshold ( data , threshold ) ; peaks }
Returns a list of peaks in the given vector of numeric values.
Returns a list of peaks in the given vector of numeric values .
data
&Vec<f64>
sigmas
f64