iDist | R Documentation |
Computes the inter-site Euclidean distance matrix for one or two sets of points.
iDist(coords.1, coords.2, ...)
coords.1 |
an nxp matrix with each row corresponding to a point in p dimensional space. |
coords.2 |
an mxp matrix with each row
corresponding to a point in p dimensional space. If this is
missing then |
... |
currently no additional arguments. |
The nxn or nxm inter-site Euclidean distance matrix.
Andrew O. Finley finleya@msu.edu,
Sudipto Banerjee sudiptob@biostat.umn.edu,
## Not run: n <- 10 p1 <- cbind(runif(n),runif(n)) m <- 5 p2 <- cbind(runif(m),runif(m)) D <- iDist(p1, p2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.