I'm using scipy.signal.find_peaks but need to return the array in size order

Viewed 15

I'm analysing the output of a FFT, and need to identify all peaks. However, I need these in magnitude order rather than frequency order (the default order they occur in the array). Here's the command without reshuffling the results into size order:

peak_list = scipy.signal.find_peaks(magnitude, height = 0)

So, what do I do next? The process needs to be really fast because this is a real-time application. Any help gratefully received.

0 Answers
Related