Find peaks. With mindist parameter the algorithm ignore small peaks that occur in the neighborhood of a larger peak.
| Parameters : | 
  | 
|---|---|
| Returns : | 
  | 
Example:
>>> import mlpy
>>> x = [6,2,2,1,3,4,1,3,1,1,1,6,2,2,7,1]
>>> mlpy.findpeaks_dist(x, mindist=3)
array([ 0,  5, 11, 14])
Find peaks with a sliding window of width span.
| Parameters : | 
  | 
|---|---|
| Returns : | 
  | 
Example:
>>> import mlpy
>>> x = [6,2,2,1,3,4,1,3,1,1,1,6,2,2,7,1]
>>> mlpy.findpeaks_win(x, span=3)
array([ 0,  5,  7, 11, 14])