Given two LineStrings compare thier similarity by calculating the Fréchet distance.
Examples
x <- geom_linestring(1:10, runif(10, -1, 1))
y <- geom_linestring(1:10, runif(10, -3, 3))
frechet_distance(x, y)
#> [1] 2.5964
Given two LineStrings compare thier similarity by calculating the Fréchet distance.
x <- geom_linestring(1:10, runif(10, -1, 1))
y <- geom_linestring(1:10, runif(10, -3, 3))
frechet_distance(x, y)
#> [1] 2.5964