I'm trying to find relative peaks in an array but I only want to it look for neighbourhood on the left side and not the ones after that. Is there any way i can do that?
max_idx = list(argrelextrema(high, np.greater_equal, order=10)[0]) min_idx = list(argrelextrema(low, np.less_equal, order=10)[0])
this looks both ways but i need it to look only for previous datas.
2.1m questions
2.1m answers
60 comments
57.0k users