Skip to main content

Ramer-Douglas-Peuker algorithm python implementation

Project description

Ramer-Douglas-Peucker

Ramer-Douglas-Peucker python implementation.

Installation

pip install rdp-algo

Usage

The rdp function supports both lists and numpy arrays of arbitrary dimensions.

>>> from rdp_algo import rdp
>>> rdp([[0,0],[1,1],[2,0]], epsilon=1)
[[0,0],[2,0]]
>>> import numpy as np
>>> from rdp_algo import rdp
>>> rdp(np.array([[0,0],[1,1],[2,0]]), epsilon=1)
array([[0,0],[2,0]])

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

rdp-algo-0.1.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

rdp_algo-0.1.1-py2.py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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