Skip to main content

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]])

If you specify return_mask=True the function will return a mask of the points that were kept.

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

Metadata

Release files for pyrdp 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrdp 0.1.6
File Size Uploaded Provenance
pyrdp-0.1.6.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrdp 0.1.6
File Interpreter ABI Platform
pyrdp-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / pyrdp-0.1.6.tar.gz

Download URL pyrdp-0.1.6.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b889d36c3a1f5aa913c871d9a018d3c9d8da472b6a1bc569cc11b7b6c2a15889
BLAKE2b-256 checksum
How to use checksums
e4abaf03ff063cc4c1d702c33a999de4f262253c3405ea623802594a019531d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.3 CPython/3.10.6

Release files / pyrdp-0.1.6-py3-none-any.whl

Download URL pyrdp-0.1.6-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e76c3f8c5364136dbb27233f4cc47062e4ad1f92dad2638e65bb0f7916926448
BLAKE2b-256 checksum
How to use checksums
09355ceb767d8ff88aa5f98738eccd64398b115b89804d0774e9c5dddeceb0c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.3 CPython/3.10.6

Security for pyrdp 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page