Signal Smoothing Analysis Object and Template *

23.08.2021

This analysis object allows you to smooth a data set. The object can process data series, data matrices, signals and signal series. The object calculates moving averages, moving median values, maxima or minima. The Savitzky-Golay, LOESS, LOWESS and Gaussian filters are also available with the Digital Filters option. You can set the smoothing width N, i.e., the number of values that are to be analyzed for each value in the result. The moving average smoothes noisy signals. The moving median, on the other hand, is suited especially for filtering outlier values from data sets. The median of a sample of values is the center value of the sorted sample. The Savitzky-Golay filter is not optimized for discarding higher frequencies, but instead is optimized for discarding statistic moments of a higher order. LOESS and LOWESS are locally weighted regression smoothing filters that use a quadratic or linear model function for iterative calculations. The Gaussian filter is a low-pass filter and smooths a data set through convolution with a Gaussian normal distribution with an adjustable standard deviation of σ (width). Better smoothing is achieved using the Gaussian filter than using the moving average.

The following illustration shows the effects of different smoothing methods on a noisy signal with outliers. It is important to note that the median filter is the best tool for removing outliers.

Smoothing by way of the floating mean value is a linear filter operation. This corresponds to a convolution of the signal with a rectangular window whose width corresponds to the smoothing width. The following illustration shows the transfer function of the rectangular window for n = 10 and n = 20:

The following figure shows the comparison between the amplitude response of the Gaussian low-pass filter with a standard deviation of 4.7 to a moving average with a smoothing width of 7. High frequencies in particular are suppressed much better than when using the moving average:

 

FPScript Functions Used

Smooth

Mean

Quantile

Maximum

Minimum

SavitzkyGolayFilter

LoessFilter

LowessFilter

GaussianFilter

See Also

SavitzkyGolay Algorithm

LOESS/LOWESS Algorithm

* This analysis object is not available in FlexPro View.

Share article or send as email:

You might be interested in these articles