SignalUtils::FindNearest Function

int FindNearest(TVec *Data, double ASample);

Return the index of the nearest value.

#NameTypeDescription
1DataTVec *
2ASampledouble
Remarks:

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

Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler