The SavGol function applies the Savitzky-Golay filter to smooth or differentiate 2D data matrices row-wise. This filter is based on fitting local polynomial models to a sliding window of data points, providing effective noise reduction while preserving important features such as peak shapes and trends.
Reference:Savitzky, A.; Golay, M. J. E. (1964). Smoothing and differentiation of data by simplified least squares procedures. Analytical Chemistry, 36(8), 1627-1639. https://doi.org/10.1021/ac60214a047