Polynomial filtering method of Savitzky and Golay.
Usage
savgol(T, fl, forder = 4, dorder = 0)
Arguments
T
Vector of signals to be filtered.
fl
Filter length (for instance fl = 51..151), has to be odd.
forder
Filter order (2 = quadratic filter, 4 = quartic).
dorder
Derivative order (0 = smoothing, 1 = first derivative, etc.).
Value
Vector representing the smoothed time series.
Details
Savitzky-Golay smoothing performs a local polynomial regression on a
series of values which are treated as being equally spaced to determine
the smoothed value for each point.
Methods are also provided for calculating derivatives.
References
See Numerical Recipes, 1992, Chapter 14.8, for details.
See Also
sav_gol in package `RTisean' or sgolayfilt in package `signal'.