WhittakerHendersonSmootherSmoothLikeSavitzkyGolay Method |
Smooths the data in a way comparable to a traditional Savitzky-Golay filter with the given parameters
degree and m.
Namespace: Altaxo.Calc.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static double[] SmoothLikeSavitzkyGolay(
double[] data,
int degree,
int m
)
Parameters
- data Double
- The input data.
- degree Int32
- The degree of the polynomial fit used in the SG filter.
- m Int32
-
The half-width of the SG kernel. The kernel size of the SG filter (i.e. the number of points for fitting the polynomial)
is 2*m + 1.
Note that very strong smoothing will lead to numerical noise; recommended limits for m are 700, 190, 100,
and 75 for Savitzky-Golay degrees 2, 4, 6, and 8, respectively.
Return Value
DoubleThe smoothed data.
See Also