[SciPy-user] Extrema finding

Neal Becker ndbecker2 at gmail.com
Thu Oct 9 08:06:06 EDT 2008


iCy-fLaME wrote:

> 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!

I have code for that in c++, which can be used with pyublas and boost::python. :)




More information about the SciPy-User mailing list