title: determine index and value of first negative peak
body: <p>I am solving a funcion which uses the  moving average filter to remove noise. How can I determine index and value of first and second negative peak after I apply the filter to input data? </p>