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

Find the nearest DC crossing.

Pascal
procedure NearestDCCrossing(const Data: TVec; var Pos: double; out Y: double; DC: double; LinInterpolate: boolean = True); overload;

Converge to the nearest DC crossing of Data, if the start position is at Data[Pos]. Return the position of the found DC crossing in Index and amplitude in Y. Use linear interpolation, if LinInterpolate is True, to determine the position of the actual intersection of the Data time series with zero. Use Y to determine how close the interpolation came (Y should be DC).

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