You are here: Symbol Reference > SignalUtils Namespace > Functions > SignalUtils.FindNearest Function
DSP Master VCL
ContentsIndex
PreviousUpNext
SignalUtils.FindNearest Function

Return the index of the nearest value.

Pascal
function FindNearest(const Data: TVec; ASample: double): integer; overload;

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

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!