int FindNearest(TVec *Data, double ASample);
Return the index of the nearest value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | |
| 2 | ASample | double |
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