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
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:
- Smooth the data using a rolling median function
- Fit a linear interpolation function on the smoothened data
- Use scipy find_peaks function to find the number of extrema points
- 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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4057897f31c70d9b0a129ea8c190daaeb96d2a3a886e6b0c15d73457ff949c |
|
MD5 | 5b17efb5e9e24e691f0570a3c813dce2 |
|
BLAKE2b-256 | 38834639de88e81a3d3d65608284ef4406fb8fcd658872017609a7224ae0ccf8 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f1594b0c1485416f396f476182757434d6910235cc34d802ccbeddb5736dac9 |
|
MD5 | daa5d8f6cb4b024b69ea67583f5dcc12 |
|
BLAKE2b-256 | 3fde87704a9d6f89dffa83a459adfb7693b6af2c98d680189953442882af025f |