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.9.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

autopwlf-0.9.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for autopwlf-0.9.0.tar.gz
Algorithm Hash digest
SHA256 0b4057897f31c70d9b0a129ea8c190daaeb96d2a3a886e6b0c15d73457ff949c
MD5 5b17efb5e9e24e691f0570a3c813dce2
BLAKE2b-256 38834639de88e81a3d3d65608284ef4406fb8fcd658872017609a7224ae0ccf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autopwlf-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f1594b0c1485416f396f476182757434d6910235cc34d802ccbeddb5736dac9
MD5 daa5d8f6cb4b024b69ea67583f5dcc12
BLAKE2b-256 3fde87704a9d6f89dffa83a459adfb7693b6af2c98d680189953442882af025f

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