powered by
It computes the euclidean distance matrix for a set of coordinates.
distmatrix(coords)
symetric matrix of distances between points.
2D spatial coordinates.
Alejandro Ordonez <<[email protected]>>, Victor H. Lachos <<[email protected]>> and Christian E. Galarza <<[email protected]>>
Maintainer: Alejandro Ordonez <<[email protected]>>
Diggle, P. & Ribeiro, P. (2007). Model-Based Geostatistics. Springer Series in Statistics.
SAEMSCL
n<-200 n1=100 ####Simulating spatial coordinates## r1=sample(seq(1,30,length=400),n+n1) r2=sample(seq(1,30,length=400),n+n1) coords=cbind(r1,r2) H=distmatrix(coords)
Run the code above in your browser using DataLab