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.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97044a2da9a4512d7758f7d3edcce845fea65689f8fe420612d6cd37a4436512 |
|
MD5 | d1d2b7f4f29594c445248fd49ddabe7d |
|
BLAKE2b-256 | 42717cab5e83f7cd43a79616b84a462ccb3d6eb606d5dd4feede33cc99f19b64 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a614a29cbb01910071dbcae30c5df509b021eeb6be720dbaa531215d8d105a7f |
|
MD5 | 8c52671075238e2ac336ca9d6c2fac94 |
|
BLAKE2b-256 | f369ea35062cd38fdf753426e44de664a6f28ed0d6bcb446b3614cd637595350 |