SignalUtils::SampleAndDecayFilter Function

void SampleAndDecayFilter(TVec *Data, TSampleAndHoldState &State, double Decay = 0.99);

Filter data with a sample-and-decay filter.

#NameTypeDescription
1DataTVec *
2StateTSampleAndHoldState &
3Decay = 0.99double
Remarks:

Filter Data with a non-linear sample-and-decay filter. This filter is similar to Sample-And-Hold, except that the held value slowly decays until a bigger is found. The filter features streaming support via State variable. Data can be real or complex. The decay parameter defines how much will the value decay from sample to sample. The State variable has to be initialized with zeros before it is passed to the routine for the first time.

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