Learn R Programming

rsgeo (version 0.1.7)

frechet_distance: Calculate Frechet Distance

Description

Given two LineStrings compare thier similarity by calculating the Fréchet distance.

Usage

frechet_distance(x, y)

Value

A numeric vector

Arguments

x

an object of class rs_LINESTRING

y

an object of class rs_LINESTRING

Examples

Run this code
x <- geom_linestring(1:10, runif(10, -1, 1))
y <- geom_linestring(1:10, runif(10, -3, 3))
frechet_distance(x, y)

Run the code above in your browser using DataLab