An NDoc Documented Class Library

Corners.findLocalMinima Method 

Finds a local minima within an array of doubles.

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

Parameters

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

Return Value

The local minima's index within values

See Also

Corners Class | Fragmenter Namespace