rdp-algo 0.1.1

Creator: bradpython12

Last updated:

0 purchases

rdp-algo 0.1.1 Image
rdp-algo 0.1.1 Images

Languages

Categories

Add to Cart

Description:

rdpalgo 0.1.1

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.