iDist {spBayes} | R Documentation |
Euclidean distance matrix
Description
Computes the inter-site Euclidean distance matrix for one or two sets of points.
Usage
iDist(coords.1, coords.2, ...)
Arguments
coords.1 |
an |
coords.2 |
an |
... |
currently no additional arguments. |
Value
The n\times n
or n\times m
inter-site Euclidean distance matrix.
Author(s)
Andrew O. Finley finleya@msu.edu,
Sudipto Banerjee sudiptob@biostat.umn.edu,
Examples
## 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)
[Package spBayes version 0.4-7 Index]