DewDSPMasterNET
FindNearest Routine
Summary
Return the index of the nearest value.

Unit
SignalUtils

Declaration
Function FindNearest(Data: TVec; ASample: TSample): integer;

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

Copyright 2008 Dew Research
http://www.dewresearch.com