nn {prabclus} | R Documentation |
Computes the mean of the distances from each point to its ne
th
nearest neighbor.
nn(distmat, ne = 1)
distmat |
symmetric distance matrix. |
ne |
integer. |
numerical.
Christian Hennig hennig@math.uni-hamburg.de http://www.math.uni-hamburg.de/home/hennig/
Hennig, C. and Hausdorf, B. (2002) Distance-based parametric bootstrap tests for clustering of species ranges, submitted, http://stat.ethz.ch/Research-Reports/110.html.
data(kykladspecreg) # Note: If you do not use the installed package, replace this by # kykladspecreg <- read.table("(path/)kykladspecreg.dat") j <- jaccard(t(kykladspecreg)) nn(j,4)