Detect valleys
Issue #17
invalid
Just wondering if its possible to detect valleys instead of/in addition to peaks in a signal using peakutils.indexes()?
If not currently possible, what change would have to be made to allow for that functionality?
Comments (4)
-
repo owner -
thanks, but this method doesn't allow for the detection of both peaks and valleys simultaneously. I could detect valleys, then detect peaks, resulting in 2 arrays, but I think they would be pretty difficult to combine together
-
repo owner You can join the two arrays and sort them, if you want. I will mark this as 'not an issue', unless you have a specific case that justifies a separate function. Thanks.
-
repo owner - changed status to invalid
Not an issue.
- Log in to comment
You can detect the valleys by calling indexes(-data), like: