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.