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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyrdp-0.1.2-py3-none-any.whl
(2.9 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
166a00c75dd5ea5d2b1fbec9cae1dd02d30c98dbceb32b8e3829857252bba2d1
|
|
| MD5 |
051bcae3634561e5d5ce727d18794d35
|
|
| BLAKE2b-256 |
f04bd44d482a80845dcc31908f27761bc9baaa3a524008ff9a106ae42ecd09e3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dec1dd01dc7fd14daedeef481b31d592532be4ba4a02ef7ff1781536dcd2edb
|
|
| MD5 |
7fb19ff5d7f0bb302af69ccdf0cefa1b
|
|
| BLAKE2b-256 |
4f20b2d7c79f90715f5469e20283eb0afa1ea156e3979257073ca6542b4c9512
|