Skip to main content

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

Release files for rdp-algo 0.1.1

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

Source distribution (sdist)

Source distribution for rdp-algo 0.1.1
File Size Uploaded
rdp-algo-0.1.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rdp-algo 0.1.1
File Interpreter ABI Platform
rdp_algo-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 6.5 kB

Release files / rdp-algo-0.1.1.tar.gz

Download URL rdp-algo-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
86eae5c7e8ed1e8103fa1072eabf62d7869e7666bf81cc42576fa091c5504815
BLAKE2b-256 checksum
How to use checksums
2193ff2dbb504d74824396ebb572042e4f3b488b39c1d0bb8640dbdc5e216daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / rdp_algo-0.1.1-py2.py3-none-any.whl

Download URL rdp_algo-0.1.1-py2.py3-none-any.whl
Size 3.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
75f872594c24a4d38c6fa431256e9f2924d3aa9a2ee2752a2a8cfba427c2bdd0
BLAKE2b-256 checksum
How to use checksums
fee2b770140394cc1bd2ede40b0ca23852e1f89ea8d9d75691454f9f776d9dcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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