SavGolFilter
- class eyefeatures.preprocessing.smoothing.SavGolFilter(x, y, t=None, pk=None, window_length=11, polyorder=2, **savgol_kw)[source]
Bases:
BaseSmoothingPreprocessorSavitzky-Golay filter. ‘x’ and ‘y’ directions are filtered independently, time is ignored. Parameters are passed to scipy.signal.savgol_filter.
Notes
Default values are taken from https://arxiv.org/pdf/2303.02134.
Algorithm
Fits \(k\)-degree polynomial using \(k\) last points in sequence with OLS.