| MovingWindowFilterSavitzkyGolayCoefficients Method |
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.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleVector SavitzkyGolayCoefficients(
int numberLeft,
int numberRight,
int polynomialDegree
)
Public Shared Function SavitzkyGolayCoefficients (
numberLeft As Integer,
numberRight As Integer,
polynomialDegree As Integer
) As DoubleVector
public:
static DoubleVector^ SavitzkyGolayCoefficients(
int numberLeft,
int numberRight,
int polynomialDegree
)
static member SavitzkyGolayCoefficients :
numberLeft : int *
numberRight : int *
polynomialDegree : int -> DoubleVector
Parameters
- numberLeft Int32
- >Number of points to the left in the window.
- numberRight Int32
- Number of points to the right in the window.
- polynomialDegree Int32
- Degree of the smoothing polynomial. Typically between 3 and 8.
Return Value
DoubleVectorSee Also