find_peaks_spline

ipkiss3.all.find_peaks_spline(x, y, threshold=0.5, smoothing=0.0)

Find peaks in data varying in one parameter by means of a spline fit.

Parameters:

x: ndarray or list

Abscissa of the data

y: ndarray or list

Ordinate of the data in which to detect peaks

threshold: float

Decision threshold for peaks

smoothing: float

Smoothing factor for spline fitting

Returns:

x_peak: ndarray

x values where y peaks

y_peak: ndarray

y values of the peaks.

Notes

The returned x and y values are not necessarily in the input x and y arrays.