View source: R/extendr-wrappers.R
frechet_distance | R Documentation |
Given two LineStrings compare thier similarity by calculating the Fréchet distance.
frechet_distance(x, y)
x |
an object of class |
y |
an object of class |
A numeric vector
x <- geom_linestring(1:10, runif(10, -1, 1))
y <- geom_linestring(1:10, runif(10, -3, 3))
frechet_distance(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.