Skip to main content

Simple Rammer-Douglas-Peuker algorithm implementation.

Project description

Ramer-Douglas-Peucker

Ramer-Douglas-Peucker python implementation.

Installation

pip install pyrdp

Usage

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

>>> from pyrdp import rdp
>>> rdp([[0,0],[1,1],[2,0]], epsilon=1)
[[0,0],[2,0]]
>>> import numpy as np
>>> from pyrdp 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.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrdp-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b16374533b2c4141012a39cb65e2e78d240826bdd24eeb32bc7e55fa5dd682fa
MD5 c4d0c74ffa491462ecc621c48c3b14c5
BLAKE2b-256 1503649319366060c08fa2b01398db4ff259e81019649b96c753b434aed4dc86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrdp-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 34bb717146975e92e43c3afe86342d1eb350fc5d3a6125dd542199b23ae074ac
MD5 cadfef7f6aa3ebd7c2c4a25b4acd874b
BLAKE2b-256 71ea68bb87a11d3af4a7c18302daf332144a61d302f9f2135879db9a69c3c691

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