[SciPy-user] Extrema finding

iCy-fLaME icy.flame.gm@gmail....
Thu Oct 9 06:44:16 CDT 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