New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No output of scipy.signal.argrelextrema() #3749
Comments
A possible work-around for
Here's what your example gives:
|
I second this being a bug; two identical values in a row would intuitively result in one (if not two) peaks. The workaround works ok, but does give duplicates, of course. Which is worse - missing a peak or getting a duplicate - might depend on the application, but for me, missing the peak is definitely bad. |
agreed, a duplicate is better than nothing. maybe even better is then checking for duplicates and removing one according to some simple rule (like keep the one that has the highest value next to it) |
This is quite old but I think there is an alternative solution now. In #8350 the cython function |
Hey,
I hope that I did not made major flaws but I can not find a mistake. The output of argrelextrema() is always an empty numpy array.
(array([], dtype=int64),)
numbers.dat
contains a list of 50 testvalues containing a maximum. I also tested several values for theorder
parameterThanks for any comments!
Stephan
The text was updated successfully, but these errors were encountered: