Last chance! 50% off unlimited learning
Sale ends in
pairdist(x, y=NULL, method="C")
x
and y
would be
numeric vectors of equal length. Alternatively y
may be
omitted and x
may be
a point patter"C"
and "interpreted"
.[i,j]
entry is the distance
between the points numbered i
and j
. If method = "interpreted"
then the distances are
computed using interpreted R code only. If method="C"
then C code is used. The C code is marginally faster.
nndist
,
Kest
x <- runif(100)
y <- runif(100)
d <- pairdist(x, y)
data(cells)
d <- pairdist(cells)
Run the code above in your browser using DataLab