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.5.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

pyrdp-0.1.5-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyrdp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 271c53f568ed874210baaba9b9be54af05d672ee93632c5564994e2eb738466d
MD5 928da138faba9cc5174edaded960dc76
BLAKE2b-256 697bc27b36b18b11ffd99122c5496296fdc6b142e5eb940c8c5ad200f630d6fb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyrdp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f05e54dfc471805a7030e7f1b793171607e6a2dabe1155df73d347065c40ddac
MD5 ab272f1f8a3a2d87a88a524f27ad295c
BLAKE2b-256 098ef103435f4529450e7c9c98aa76b3439c382f9b11025072d89a8dc59bdcd5

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