powered by
Computes the inter-site Euclidean distance matrix for one or two sets of points.
iDist(coords.1, coords.2, ...)
The \(n\times n\) or \(n\times m\) inter-site Euclidean distance matrix.
an \(n\times p\) matrix with each row corresponding to a point in \(p\) dimensional space.
an \(m\times p\) matrix with each row corresponding to a point in \(p\) dimensional space. If this is missing then coords.1 is used.
coords.1
currently no additional arguments.
Andrew O. Finley finleya@msu.edu, Sudipto Banerjee sudiptob@biostat.umn.edu,
if (FALSE) { n <- 10 p1 <- cbind(runif(n),runif(n)) m <- 5 p2 <- cbind(runif(m),runif(m)) D <- iDist(p1, p2) }
Run the code above in your browser using DataLab