Int32 NearestMinimum(TVec Data, Int32 StartIndex)
Find the nearest minumum.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec | source TVec |
| 2 | StartIndex | Int32 |
Returns: Int32
Remarks:
Converge to the nearest minimum in Data, if the start position is at Data[StartIndex]. Returns the position of the found minimum: Data[i-1] > Data[i] < Data[i+1].