9

Possible Duplicate:
Peak-finding algorithm for Python/SciPy

I'm looking to find local maxima in a vector of floating-point numbers, as is done by Matlab's findpeaks function.

Does numpy have a similar function?

Thanks!

Community
  • 1
  • 1
Louis Thibault
  • 20,240
  • 25
  • 83
  • 152
  • duplicate of http://stackoverflow.com/q/1713335/125507, which resulted in the code linked to by the answer that you accepted :) – endolith Sep 11 '12 at 21:35

1 Answers1

9

How about scipy.signal.find_peaks_cwt

http://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks_cwt.html

or:

https://gist.github.com/1178136

JoshAdel
  • 66,734
  • 27
  • 141
  • 140