Skip to main content

Auto Smooth

License Code style: black

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

original_vs_smooth

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

  1. https://scipy-cookbook.readthedocs.io/items/SavitzkyGolay.html ↩

  2. https://pubs.acs.org/doi/10.1021/acsmeasuresciau.1c00054 ↩

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)

Source distribution for auto-smooth 0.1.0
File Size Uploaded
auto_smooth-0.1.0.tar.gz 47.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auto-smooth 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page