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.
1.4m articles
1.4m replys
5 comments
57.0k users