DIAdem Help

Command: ChnSavitzkyGolayFilter

  • Updated2024-09-12
  • 2 minute(s) read

Display all  Hide all

Command: ChnSavitzkyGolayFilter

Smoothes a data channel with the Savitzky-Golay filter.

Set ChnResult = ChnSavitzkyGolayFilter(Y, ResultChannel, PolynomialOrder, SmoothWidth)

Input Parameters

Y Specifies the data channel containing the y-values.
ResultChannel Specifies the result channel.
PolynomialOrder Specifies the order of the polynomial.
SmoothWidth Specifies the number of neighboring values to the left and right of the channel value that DIAdem uses to calculate the mean.

Return Parameters

ChnResult Contains the result channel. ElementList <Data> type return value.
If a signal is superimposed by a disturbing signal, the Savitzky-Golay filter smooths the signal by adjusting a polynomial function piecewise to the signal. For the adjustment the Savitzky-Golay filter uses the least square method. The length of the floating window for the adjustment of the polynomial function is 2 * SmoothWidth + 1.
Refer to the Help page Smoothing Functions for further information.

Dialog Box Call

Call SUDDlgShow("Main", ResourceDrv & "AnaChnSavitzkyGolayFilter")

Savitzky-Golay Filter

Related Topics

ChnSavitzkyGolayFilterWeighted