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
- Smoothing and Differentiation of Data by Simplified Least Squares Procedures
- Scipy savgol filter
- Savitzky–Golay
- Convolution
- What Is a Savitzky-Golay Filter?
Metadata
Release files for auto-smooth 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto_smooth-0.1.0.tar.gz | 47.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_smooth-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.3 kB
Release files / auto_smooth-0.1.0.tar.gz
| Download URL | auto_smooth-0.1.0.tar.gz |
|---|---|
| Size | 47.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33f2fb54de5314d7f4fd42f31f7dead0b5acafe8d07d54a7d2c6b37e5e140144
|
|
BLAKE2b-256 checksum How to use checksums |
a0e917c5266e7e61abd9bca3277239dcea865beca26494e2677a74a67d6795a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / auto_smooth-0.1.0-py3-none-any.whl
| Download URL | auto_smooth-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc50e945dc5fd6f38dabc3bef513daa3bb1fac5fa12be868d54f780a692311b0
|
|
BLAKE2b-256 checksum How to use checksums |
5db868b5e3b3f026361978689811bb757c18aec2acefb9749c5b5f590b977076
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|