Click or drag to resize

WeightedSavitzkyGolaySmootherBandwidthToHalfwidth Method

Calculates the kernel half-width m for a given bandwidth (the frequency where the response decreases to -3 dB, corresponding to 1/sqrt(2)) for an SGW filter with HANNSQR weights.

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

Parameters

degree  Int32
The degree of the polynomial fit used in the SGW filter.
bandwidth  Double
The desired bandwidth with respect to the sampling frequency. The value must be less than 0.5 (the Nyquist frequency).

Return Value

Int32
The kernel half-width m for this bandwidth.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if bandwidth is outside the valid range.
See Also