Click or drag to resize

WeightedSavitzkyGolaySmootherSmooth(Double, Double, WeightedSavitzkyGolaySmootherWeightType, Int32, Int32) Method

Smooths the data with the specified weight function, polynomial degree, and kernel half-width m. This method is implemented only for data arrays that have at least 2*m + 1 elements.

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double[] Smooth(
	double[] data,
	double[]? result,
	WeightedSavitzkyGolaySmootherWeightType weightType,
	int degree,
	int m
)

Parameters

data  Double
The input data.
result  Double
The output array; may be . If supplied and has the correct size and is not the input array, it is used for the output.
weightType  WeightedSavitzkyGolaySmootherWeightType
Type of the weight function; NONE for traditional SG, HANNSQR for the filters described in the paper.
degree  Int32
Degree of the polynomial fit.
m  Int32
Half-width of the kernel.

Return Value

Double
The smoothed data. If result is non-null, has the correct size, and is not the input array, it is returned.
See Also