JuliaDSP / DSP.jl

Filter design, periodograms, window functions, and other digital signal processing functionality
https://docs.juliadsp.org/stable/contents/
Other
381 stars 109 forks source link

peak analysis #303

Open babaq opened 5 years ago

babaq commented 5 years ago

Hi,

I just encounter a problem of finding specific peaks or troughs in a signal, and can't find appropriate functions in Julia.

In MATLAB, the findpeaks is very convenient that it could find local maxima and filter it by combination of conditions, like the minimum peak height, minimum prominence(peak to neighbor troughs height), etc. and Python also have scipy.signal.find_peaks with similar functionality.

I think the DSP package might be the right place to do such analysis. all rough, the Images package already have simple findlocalmaxima and findlocalminima without filter conditions.

galenlynch commented 5 years ago

That sounds like it would be useful, if you want to put a PR together that goes beyond what's in the Images package it would be welcomed.