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
  • 18,222
  • 22
  • 78
  • 144
  • 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
  • 62,453
  • 24
  • 136
  • 135