Skip to main content

Polyline simplifying package

Project description

CurveSimplify

License CI CD Docs Supported Python Versions PyPI Version

title

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:

https://curvesimplify.readthedocs.io/

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.

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

curvesimplify-0.1.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curvesimplify-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file curvesimplify-0.1.1.tar.gz.

File metadata

  • Download URL: curvesimplify-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for curvesimplify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c40b8cf844380a770d0e0d0f59664ea01ef7e2e17e5aa5054ea348be7016d82
MD5 b58f31dcc39354a1be5871bf642a3230
BLAKE2b-256 ccd162eb640f777852a948255bd5d2bd45744895c296ce5fe1545a21f2361ad3

See more details on using hashes here.

File details

Details for the file curvesimplify-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: curvesimplify-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for curvesimplify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95fb6c14ffbc58b264477b9c49bbc834b4c33467cc9256bcf60ac35383fc5880
MD5 980bcc0305c08f0e94753083e5e95281
BLAKE2b-256 94565cd853908017e1943132461c1652db8d8183f802ef14193caeefd50e49e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page