[SciPy-user] Extrema finding

iCy-fLaME icy.flame.gm at gmail.com
Thu Oct 9 07:44:16 EDT 2008


I am trying to find a list of all maxima and minima, each for a given
(1D) numpy array. Anyone know of a quick way to do it?

Ideally the function will return the extrema values and their
positions. Relatively simple function to implement in Python, but that
would be painfully slow. The typical data array I am looking at, has
approximately 500k elements of double precision float.

Any thoughts and suggestions are much appreciated. Thanks!



More information about the SciPy-User mailing list