Overview
The Savitzky-Golay Filter preserves local shape better than a simple moving average by replacing each point with a polynomial fit estimate.
Smooths data by fitting a low-degree polynomial inside a moving window.
Compact metadata for implementation and discovery.
The Savitzky-Golay Filter preserves local shape better than a simple moving average by replacing each point with a polynomial fit estimate.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n * window)
Worst
O(n * window)
Space
O(window)
y(t) ~= a0 + a1*t + a2*t^2 + ... + ad*t^dFits nearby samples with a low-degree polynomial.
Show a small polynomial curve fitted through each moving window.
The polynomial degree must be lower than the window size.
What each reference supports for this entry.
Original paper on smoothing and differentiation by local least-squares polynomial fitting.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Savitzky-Golay smoothing preserves local polynomial shape better than a plain average.