title: Maxima and Minima Point of a Curve in Python
body: <p>I have a captured a data from a displacement sensor, the delta values for one iteration look like this. 0, 1, 2, 4, 7, 9, 14, 24, 14, 10, 9, 7, 3 2, 1, 0, 0, 0, 0, -1, -3, -5, -7, -9, -14, -24, -14, -9, -8, -6, -4, -3, -1, 0, 0, 0. (other iterations are also have same pattern.)</p>
  
  <p>I am interested in the maxima and minima points of a curves. I start with a initial position and come back to this position for a loops for line(I've take the partial sum of the values to get the total displacement or line). The partial sum look like this [0, 1, 3, 7, 14, 23, 37, 61, 75, 85, 94, 101, 104, 106, 107, 107, 107, 107, 107, 106, 103, 98, 91, 82, 68, 44, 30, 21, 13, 7, 3, 0, -1, -1, -1, -1]. I am interested in 107 and -1 (the next curve minima)</p>
  
  <p>But I am not figure out the code for say n no. of curve (iteration). Can you help me with this?</p>