SignalUtils::NearestDCCrossing Function

void NearestDCCrossing(TVec *Data, double &Pos, double &Y, double DC, bool LinInterpolate = true);

Find the nearest DC crossing.

#NameTypeDescription
1DataTVec *
2Posdouble &
3Ydouble &
4DCdouble
5LinInterpolate = truebool
Remarks:

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).

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