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.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic 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
Int32The kernel half-width
m for this bandwidth.
Exceptions
See Also