SignalUtils.NearestMinimum Method

Int32 NearestMinimum(TVec Data, Int32 StartIndex)

Find the nearest minumum.

#NameTypeDescription
1DataTVecsource TVec
2StartIndexInt32

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].