findPeaks

A simple algorithm to find local maxima/minima in sequential data