scipy.signal.find_peaks
时间: 2024-05-31 08:07:57 浏览: 102
使用findpeaks函数检测信号峰值
The scipy.signal.find_peaks function is a signal processing function in the SciPy library. This function is used to find the peaks (local maxima) in a signal. It takes a one-dimensional array as the input and returns the indices of the peaks in the array.
The function has several parameters that can be adjusted to fine-tune the peak detection process. These parameters include:
- height: The minimum height of the peak above the surrounding data.
- distance: The minimum distance between neighboring peaks.
- prominence: The minimum prominence of a peak. Prominence is defined as the vertical distance between the peak and its lowest contour line.
The function returns a tuple of two arrays. The first array contains the indices of the peaks in the input array, and the second array contains the peak heights.
阅读全文