SavitzkyGolayFilter
The Savitzky-Golay filter is a digital smoothing and differentiation technique used to enhance data quality while preserving features such as peak shapes. It works by fitting a low-degree polynomial to successive subsets of adjacent data points via linear least squares, and then replacing each central point with the value of the fitted polynomial (or its derivative) at that point.
Mechanism and mathematics: For a window containing 2m+1 points, a polynomial of degree p (p ≤ 2m)
Parameters and usage: The method requires evenly spaced data. Key parameters are the window length (usually
Implementation and considerations: The filter is widely implemented in scientific software (eg, sgolayfilt, savgol_filter) with options