Click or drag to resize

ModifiedSincSmootherBandwidthToM Method

Calculates the kernel half-width m that comes closest to the desired bandwidth, i.e. the frequency where the response decreases to -3 dB (i.e. 1/sqrt(2)).

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

Parameters

isMS1  Boolean
If , calculates for the MS1 variant, which has a smaller kernel size at the cost of reduced stopband suppression and a more gradual cutoff for degree = 2. Otherwise, standard MS kernels are used.
degree  Int32
Degree of the filter. Must be 2, 4, 6, …, MAX_DEGREE. As for Savitzky-Golay filters, higher degree results in a sharper cutoff in the frequency domain.
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.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if bandwidth is outside the valid range.
See Also