detect peak location using intercept definition