SignalUtils.FindNearest Method

Int32 FindNearest(TVec Data, Double ASample)

Return the index of the nearest value.

#NameTypeDescription
1DataTVecsource TVec
2ASampleDoublescalar

Returns: Int32

Remarks:

Return the index of the value within data where the expression abs(Data[Index]- ASample) is smallest.