An NDoc Documented Class Library

Corners.findLocalMaxima Method 

Finds local maxima within an array of doubles

private int findLocalMaxima(
   double[] values,
   double threshold,
   int startIndex,
   out int loopExit
);

Parameters

values
Values to look for a local maxima
threshold
The threshold line that the values must be greater than before we assume a maxima has been found
startIndex
Where to start looking for the maxima in the values array
loopExit
Where we stopped looking

Return Value

The local maxima's index within values

See Also

Corners Class | Fragmenter Namespace