Click or drag to resize

MovingWindowFilter Methods

The MovingWindowFilter type exposes the following members.

Methods
 NameDescription
Protected methodCorrelate Does the correlation and takes care of internal correlation and work objects.
(Inherited from CorrelationFilter)
Public methodStatic memberCode exampleExponentiallyWeightedMovingAverageCoefficients Returns a vector of exponentially weighted moving average (EWMA) coefficients of length n.
Public methodFilter(DoubleVector) Filters
C#
data
with the PadWithZeros option.
(Overrides CorrelationFilterFilter(DoubleVector))
Public methodFilter(DoubleVector, DoubleVector) Filters
C#
data
with the PadWithZeros option.
(Overrides CorrelationFilterFilter(DoubleVector, DoubleVector))
Public methodFilter(DoubleVector, MovingWindowFilterBoundaryOption) Applies the filter to the given data using the given boundary option. The given boundary option sets the current boundary option.
Public methodFilter(DoubleVector, MovingWindowFilterBoundaryOption, DoubleVector) Applies the filter to the given data using the given boundary option and places the output in a given vector. The given boundary options sets the current boundary option.
Public methodStatic memberMovingAverageCoefficients Constructs the coefficient vector that implements a moving average filter when used with the MovingWindowFilter class.
Public methodStatic memberSavitzkyGolayCoefficients Constructs the coefficient vector that implements a Savitzky-Golay smoothing filter when used with the MovingWindowFilter class. The algorithm is also known by the terms, least-squares, or DIgital Smoothing POlynomial (DISPO). The filter coefficients, c(n) are chosen so as to approximate the underlying function in the window [i - nL, i + nR] with a polynomial, typically quadratic or quartic, and replace the point f(i) with the value of the approximating polynomial at i. The polynomial is fit using a least squares algorithm.
Public methodSetFilterParameters Sets the parameters for this filter.
Top
See Also