Click or drag to resize

WeightedSavitzkyGolaySmootherSavitzkyGolayBandwidth Method

Calculates the bandwidth of a traditional Savitzky-Golay (SG) filter.

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double SavitzkyGolayBandwidth(
	int degree,
	int m
)

Parameters

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.

Return Value

Double
The -3 dB bandwidth of the SG filter, i.e. the frequency where the response is 1/sqrt(2). The sampling frequency is defined as f = 1. For degree up to 10, the accuracy is typically much better than 1%; higher errors occur only for the lowest m values where the SG filter is defined (worst case: 4% error at degree = 10, m = 6).
See Also