Python findpeaks–find maxima of data with adjacency condition

argrelmax() is a Python function that works like Matlab’s “findpeaks” checkout SciPy argrelmax.

More detailed discussion of Python vs. Matlab vs. Octave with code.

Compare Matlab & Octave peak finding

The example does not demonstrate the need to filter the data in the case of highly noisy data, which may be accomplished with a Savitzky-Golay filter.

data with peaks highlighted in Matlab
Matlab findpeaks().
data with peaks highlighted in Python
Python findpeaks.

Leave a Comment