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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: autopwlf-0.8.0.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.8.0.tar.gz
Algorithm Hash digest
SHA256 97044a2da9a4512d7758f7d3edcce845fea65689f8fe420612d6cd37a4436512
MD5 d1d2b7f4f29594c445248fd49ddabe7d
BLAKE2b-256 42717cab5e83f7cd43a79616b84a462ccb3d6eb606d5dd4feede33cc99f19b64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autopwlf-0.8.0-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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a614a29cbb01910071dbcae30c5df509b021eeb6be720dbaa531215d8d105a7f
MD5 8c52671075238e2ac336ca9d6c2fac94
BLAKE2b-256 f369ea35062cd38fdf753426e44de664a6f28ed0d6bcb446b3614cd637595350

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