CurveSimplify
A Python package for polygonal curve simplification.
List of supported algorithms:
- Imai-Iri algorithm (
curvesimplify.imaiiri) - Agarwal's algorithm (
curvesimplify.agarwal)
Usage
>>> import numpy as np
>>> from curvesimplify.agarwal import min_err
>>> x = np.linspace(0, 5, 50)
>>> f = np.exp(-x) * np.cos(2 * np.pi * x)
>>> curve = np.column_stack([x, f])
>>> simp, err = min_err(curve, 10)
>>> len(simp) # at most 10
10
Installation
CurveSimplify can be installed using pip.
$ pip install curvesimplify
Documentation
CurveSimplify is documented with Sphinx. The manual can be found on Read the Docs:
If you want to build the document yourself, get the source code and install with [doc] dependency.
Then, go to doc directory and build the document:
$ pip install .[doc]
$ cd doc
$ make html
Document will be generated in build/html directory. Open index.html to see the central page.
Metadata
Release files for curvesimplify 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| curvesimplify-0.1.1.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| curvesimplify-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / curvesimplify-0.1.1.tar.gz
| Download URL | curvesimplify-0.1.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c40b8cf844380a770d0e0d0f59664ea01ef7e2e17e5aa5054ea348be7016d82
|
|
BLAKE2b-256 checksum How to use checksums |
ccd162eb640f777852a948255bd5d2bd45744895c296ce5fe1545a21f2361ad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / curvesimplify-0.1.1-py3-none-any.whl
| Download URL | curvesimplify-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95fb6c14ffbc58b264477b9c49bbc834b4c33467cc9256bcf60ac35383fc5880
|
|
BLAKE2b-256 checksum How to use checksums |
94565cd853908017e1943132461c1652db8d8183f802ef14193caeefd50e49e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|