SignalUtils.NearestMinimum Method

function NearestMinimum(const Data: TVec; const StartIndex: Integer): Integer;

Find the nearest minumum.

#NameTypeDescription
1DataTVec
2StartIndexInteger

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