Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nn

Mean distance to kth nearest neighbor


Description

Computes the mean of the distances from each point to its neth nearest neighbor.

Usage

nn(distmat, ne = 1)

Arguments

distmat

symmetric distance matrix (not a dist-object).

ne

integer.

Value

numerical.

Author(s)

References

Hennig, C. and Hausdorf, B. (2004) Distance-based parametric bootstrap tests for clustering of species ranges. Computational Statistics and Data Analysis 45, 875-896.

See Also

Examples

data(kykladspecreg)
j <- jaccard(t(kykladspecreg))
nn(j,4)

prabclus

Functions for Clustering and Testing of Presence-Absence, Abundance and Multilocus Genetic Data

v2.3-2
GPL
Authors
Christian Hennig <christian.hennig@unibo.it>, Bernhard Hausdorf <Hausdorf@zoologie.uni-hamburg.de>
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.