SavitzkyGolay implements the calculation of the Savitzky-Golay filter coefficients and their application to smoth data, and to calculate derivatives.
Ref.: "Numerical recipes in C", chapter 14.8
Constructor | Description |
Full Usage:
SavitzkyGolay(numberOfPoints, derivativeOrder, polynomialOrder)
Parameters:
int
-
Number of points. Must be an odd number, otherwise it is rounded up.
derivativeOrder : int
-
Order of derivative you want to obtain. Set 0 for smothing.
polynomialOrder : int
-
Order of the fitting polynomial. Usual values are 2 or 4.
|
This sets up a Savitzky-Golay filter.
|
Full Usage:
SavitzkyGolay(parameters)
Parameters:
SavitzkyGolayParameters
-
Set of parameters used for Savitzky-Golay filtering.
|
This sets up a Savitzky-Golay filter.
|
Instance member | Description |
Full Usage:
this.Apply
Parameters:
float[]
-
The array of numbers to filter.
result : float[]
-
The resulting array. Must not be identical to the input array!
|
This applies the set-up filter to an array of numbers. The left and right side is special treated by applying Savitzky-Golay with appropriate adjusted left and right number of points.
|
Full Usage:
this.Apply
Parameters:
IReadOnlyList<float>
-
The array of numbers to filter.
result : IVector<float>
-
The resulting array. Must not be identical to the input array!
|
This applies the set-up filter to an array of numbers. The left and right side is special treated by applying Savitzky-Golay with appropriate adjusted left and right number of points.
|
Static member | Description |
Full Usage:
SavitzkyGolay.GetCoefficients(leftpoints, rightpoints, derivativeorder, polynomialorder, coefficients)
Parameters:
int
-
Points on the left side included in the regression.
rightpoints : int
-
Points to the right side included in the regression.
derivativeorder : int
-
Order of derivative for which the coefficients are calculated.
polynomialorder : int
-
Order of the regression polynomial.
coefficients : IVector<float>
-
Output: On return, contains the calculated coefficients.
|
Calculate Savitzky-Golay coefficients.
|