def argrelextrema(data, comparator, axis=0, order=1, mode='clip'):
 results = _boolrelextrema(data, comparator, axis, order, mode)
 return np.where(results)

def argrelextrema ( data , comparator , axis = 0 , order = 1 , mode = 'clip' ) : results = _boolrelextrema ( data , comparator , axis , order , mode ) return np . where ( results )
calculate the relative extrema of data .