SignalUtils::SampleAndHoldFilter Function

void SampleAndHoldFilter(TVec *Data, TSampleAndHoldState &State, int Hold);

Filter data with a sample-and-hold filter.

#NameTypeDescription
1DataTVec *
2StateTSampleAndHoldState &
3Holdint
Remarks:

Filter Data with a non-linear sample-and-hold filter. The current value is held until a bigger is found or time-out occurs. Time out is defined in samples with Hold parameter. The filter features streaming support via the State variable. Data can be real or complex. The State variable has to be initialized with zeros before it is passed to the routine for the first time.

See Also: SignalUtils::SampleAndDecayFilter, SignalUtils::MedianFilter, SignalUtils::MovingAverageFilter, SignalUtils::ExpAverageFilter
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler