RamerDouglasPeucker {math} | R Documentation |
The Ramer-Douglas-Peucker algorithm
for reducing the number of points on a curve.
If there are no more than two points it does not make sense to simplify.
In this case the input is returned without further checks of `x` and `y`.
In particular, the input is not checked for `NA` values.
r<br /> RamerDouglasPeucker(x = c(0, 1, 3, 5), y = c(2, 1, 0, 1), epsilon = 0.5)<br />
`
RamerDouglasPeucker(x, y,
epsilon = 0.1,
method = ['RDPppd']);
A `data.frame` with `x` and `y` values of the simplified curve.