Skip to main content

Automated piecewise linear fitting

Project description

Auto PWLF

Piecewise Linear Fit with ability to automatically find the optimal number of line segments.

Full Documentation can be found here: Documentation

Installation available through pip: https://pypi.org/project/autopwlf/

pip install autopwlf

image

The piecewise fitting uses the pwlf module with full credit to all contributors to this package.

How it works

The currently available Piecewise Linear Fit models in Python do not have a method to determine the optimal number of break points to use. To do so this package performs the following steps:

  1. Smooth the data using a rolling median function
  2. Fit a linear interpolation function on the smoothened data
  3. Use scipy find_peaks function to find the number of extrema points
  4. Filter by primenence to return an estimate on the number of break points

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autopwlf-0.7.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

autopwlf-0.7.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file autopwlf-0.7.1.tar.gz.

File metadata

  • Download URL: autopwlf-0.7.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for autopwlf-0.7.1.tar.gz
Algorithm Hash digest
SHA256 40e8a4d97a6645b7e31f5da0338e212471d3bda1b69ee5bbb691f576fa20de9b
MD5 b9fd2ac5767c04510833512d585a528d
BLAKE2b-256 e56093c3c41bb7e5ab71cfbe16791c26da43d0af073e1e134b1efc8b6cbdbf5c

See more details on using hashes here.

File details

Details for the file autopwlf-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: autopwlf-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for autopwlf-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a9808a95a288e37d9d16df804252914861cda34d5c8920cb50bf2a9d46a731e
MD5 9562519707d282c175b739b0e83a51ec
BLAKE2b-256 c27ef4ac426a80c6e6baca1f4bb0c9ecaff0066d530b762a49ea92d228f2a93d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page