Apply auto smoothing to a time series data.
Project description
Auto Smooth
Apply data smoothing/filtering to a time series by automatically selecting parameters.
Currently available smoothing/filtering techniques in the package:
- Savitzky–Golay filter
Quickstart
from auto_smooth import auto_savgol
# apply savgol filter
data_filtered = auto_savgol(data)
>>> wl_best=7, po_best=2
Savitzky-Golay Filtering
Savitzky–Golay (Abraham Savitzky and Marcel J. E. Golay) filter is a type of low-pass filter used for smoothing noisy data.^1 It is based on local least-squares fitting.^2
auto_savgol
method applies a Savitzky–Golay filter using the scipy savgol_filter()
method.
from auto_smooth import auto_savgol
# apply savgol filter
data_filtered = auto_savgol(data)
# pass window-length and polynomial-order arguments
data_filtered = auto_savgol(data, wl_min=10, wl_max=30, po_min=2, po_max=10)
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
auto_smooth-0.1.0.tar.gz
(47.5 kB
view hashes)
Built Distribution
Close
Hashes for auto_smooth-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc50e945dc5fd6f38dabc3bef513daa3bb1fac5fa12be868d54f780a692311b0 |
|
MD5 | 91d3d27f2e85770e97a3279a59ece4ac |
|
BLAKE2b-256 | 5db868b5e3b3f026361978689811bb757c18aec2acefb9749c5b5f590b977076 |