SpheGeoDist | R Documentation |
Geodesic distance on spheres.
SpheGeoDist(y1, y2)
y1 , y2 |
Two unit vectors, i.e., with |
A scalar holding the geodesic distance between y1
and y2
.
d <- 3
y1 <- rnorm(d)
y1 <- y1 / sqrt(sum(y1^2))
y2 <- rnorm(d)
y2 <- y2 / sqrt(sum(y2^2))
dist <- SpheGeoDist(y1,y2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.