Click or drag to resize

ModifiedSincSmootherSmooth(Double, Boolean, Int32, Int32) Method

Smooths the data with the given parameters. When smoothing multiple data sets with the same parameters, using the constructor and then Smooth(Double, Double) will be more efficient.

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double[] Smooth(
	double[] data,
	bool isMS1,
	int degree,
	int m
)

Parameters

data  Double
The input data.
isMS1  Boolean
If , uses 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.
m  Int32
The half-width of the kernel. The kernel size is 2*m + 1. The parameter can be determined with BandwidthToM(Boolean, Int32, Double).

Return Value

Double
The smoothed data. Values within m points from the boundaries, where the convolution is undefined, are set to 0.
See Also