RamerDouglasPeucker {math} R Documentation

Ramer-Douglas-Peucker algorithm for curve fitting with a PolyLine

Description


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 /> `

Usage

RamerDouglasPeucker(x, y,
    epsilon = 0.1,
    method = ['RDPppd']);

Arguments

x

The `x` values of the curve as a vector without `NA` values. [as double]

y

The `y` values of the curve as a vector without `NA` values. [as double]

epsilon

The threshold for filtering outliers from the simplified curve. an number between 0 and 1. Recomended 0.01. [as double]

method

-

env

[as Environment]

Details

Authors

sciBASIC.NET

Value

A `data.frame` with `x` and `y` values of the simplified curve.

clr value class

Examples


[Package math version 5.0.1.2389 Index]