find_peaks¶
- grizli.utils.find_peaks(signal, threshold=0.5, min_dist=1)[source]¶
Find peaks in a signal using
scipy.signal.find_peaks
Rescales input based on PeakUtils implementation- Parameters
- signalarray-like
The input signal
- thresholdfloat
The relative threshold for peak detection
- min_distint
The minimum distance between peaks e.g. a distance of 1 are adjacent peaks differs from the PeakUtils implementation where adjacent peaks are seperated by 0
- Returns
- peaksarray-like
The indices of the peaks in the signal