Skip to main content

Simple Rammer-Douglas-Peuker algorithm 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

pyrdp-0.1.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

pyrdp-0.1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file pyrdp-0.1.2.tar.gz.

File metadata

  • Download URL: pyrdp-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.5.3 CPython/3.10.6

File hashes

Hashes for pyrdp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 166a00c75dd5ea5d2b1fbec9cae1dd02d30c98dbceb32b8e3829857252bba2d1
MD5 051bcae3634561e5d5ce727d18794d35
BLAKE2b-256 f04bd44d482a80845dcc31908f27761bc9baaa3a524008ff9a106ae42ecd09e3

See more details on using hashes here.

File details

Details for the file pyrdp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyrdp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.5.3 CPython/3.10.6

File hashes

Hashes for pyrdp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3dec1dd01dc7fd14daedeef481b31d592532be4ba4a02ef7ff1781536dcd2edb
MD5 7fb19ff5d7f0bb302af69ccdf0cefa1b
BLAKE2b-256 4f20b2d7c79f90715f5469e20283eb0afa1ea156e3979257073ca6542b4c9512

See more details on using hashes here.

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