Automated piecewise linear fitting
Project description
Auto PWLF
Piecewise Linear Fit with ability to automatically find the optimal number of line segments. In addition outliers can be detected and avoided during the fitting process.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autopwlf-0.9.2.tar.gz.
File metadata
- Download URL: autopwlf-0.9.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d9c98c4336601bb434209083b5e7d1352aebdea50445f0aa2673cc82a9e589a
|
|
| MD5 |
fbc798e331813a0434c54bc5e36b1ee2
|
|
| BLAKE2b-256 |
908fe85ef29a47ae7885a1415594d9cabd5c29df788de5579bc84e14607a6a34
|
File details
Details for the file autopwlf-0.9.2-py3-none-any.whl.
File metadata
- Download URL: autopwlf-0.9.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed47b712f4e4be6a78ddcbbc2304189034d05e864e6807a6c23035472693a2f3
|
|
| MD5 |
8168f949d5f7368f23a5b310dfe64cd6
|
|
| BLAKE2b-256 |
a0c1996ac9d1604b03e9a6a7b876495df46b2b591b1303f59c5b94744fb095e6
|