WeightedSavitzkyGolaySmootherSmoothLikeSG Method |
Smooths the data in a way comparable to a traditional Savitzky-Golay filter with parameters degree and
m, but using Hann-squared weights, resulting in substantially better noise rejection.
This method is implemented only for arrays that have at least as many elements as the SGW kernel.
This is more than 2*m + 1, but never more than 4*m + 1.
Namespace: Altaxo.Calc.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static double[] SmoothLikeSG(
double[] data,
int degree,
int m
)
Parameters
- data Double
- The input data.
- degree Int32
- The degree of the polynomial fit used in the SG(W) filter.
- m Int32
- The half-width of the SG kernel to be matched (2*m + 1 points).
Return Value
DoubleThe smoothed data.
See Also