## S3 method for class 'lpp':
nndist(X, ..., k=1, method="C")
"lpp"
)."interpreted"
or "C"
.k
th nearest neighbour.X
,
or a matrix, with one row for each point in X
and one column
for each entry of k
.method="C"
the distances are computed using
code in the C language. If method="interpreted"
then the
computation is performed using interpreted Rcode. The Rcode is
much slower, but is provided for checking purposes.lpp
example(lpp)
nndist(X)
nndist(X, k=2)
Run the code above in your browser using DataLab