distances | R Documentation |
Useful objects of class distance
included in package.
measure(dist, dim)
Euclid_dist(dim = 2L)
gc_dist(R = NULL)
gc_dist_time(R = NULL)
dist |
a function taking two arguments |
dim |
the dimension of the manifold (e.g., 2 for a plane) |
R |
great-circle radius |
Initialises an object of class measure
which contains a function dist
used for computing the distance between two points. Currently the Euclidean distance and the great-circle distance are included with FRK
.
M1 <- measure(distR,2)
D <- distance(M1,matrix(rnorm(10),5,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.