RamerDouglasPeucker: RamerDouglasPeucker

Description Usage Arguments Details Value

Description

The Ramer–Douglas–Peucker algorithm (RDP) is an algorithm for reducing the number of points in a curve that is approximated by a series of points. It reduces a set of points depending on the perpendicular distance of the points and epsilon, the greater epsilon, more points are deleted.

Usage

1
RamerDouglasPeucker(arr, epsilon)

Arguments

arr

KHIVA Array with with the x-coordinates and y-coordinates of the input points (x in column 0 and y in column 1).

epsilon

It acts as the threshold value to decide which points should be considered meaningful or not.

Details

[1] Urs Ramer, "An iterative procedure for the polygonal approximation of plane curves", Computer Graphics and Image Processing, 1(3), 244–256 (1972) doi:10.1016/S0146-664X(72)80017-0.

[2] David Douglas & Thomas Peucker, "Algorithms for the reduction of the number of points required to represent a digitized line or its caricature", The Canadian Cartographer 10(2), 112–122 (1973) doi:10.3138/FM57-6770-U75U-7727

Value

Array with the x-coordinates and y-coordinates of the selected points (x in column 0 and y in column 1).


shapelets/khiva-r documentation built on June 10, 2019, 4:58 a.m.