Click or drag to resize

SavitzkyGolayGetCoefficients Method

Calculates Savitzky-Golay coefficients.

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static void GetCoefficients(
	int leftpoints,
	int rightpoints,
	int derivativeorder,
	int polynomialorder,
	IVector<double> coefficients
)

Parameters

leftpoints  Int32
Points on the left side included in the regression.
rightpoints  Int32
Points on the right side included in the regression.
derivativeorder  Int32
Order of derivative for which the coefficients are calculated.
polynomialorder  Int32
Order of the regression polynomial.
coefficients  IVectorDouble
Output: on return, contains the calculated coefficients. The length must be at least leftpoints + rightpoints + 1.
Exceptions
ExceptionCondition
ArgumentException Thrown if any input argument is invalid (e.g., negative point counts, inconsistent derivative/polynomial order, or an output vector that is or too short).
See Also