RDPCPP: Ramer–Douglas–Peucker algorithm C++ version.

Description Usage Arguments Value Examples

Description

Ramer–Douglas–Peucker algorithm C++ version.

Usage

1
RDPCPP(points, epsilon)

Arguments

points

point matrix with 2 columns (x and y coordinate like).

epsilon

cut-off distance for the algorithm.

Value

RDP points.

Examples

1
2
3
4
5
RDPCPP(cbind(c(1:4),c(1:4)),0.5)

# pick a trip from driver Alexander
sample_trip <- as.matrix(subset(tele_data,{trip_id==tele_data$trip_id[1]})[,c("lat","long")])
RDPCPP(sample_trip,0.001)

platypus1989/PathMatch documentation built on May 15, 2019, 5:51 p.m.