search.neighbour {RclusTool} | R Documentation |
Search neighbour
Description
search.neighbour give the id of the Kth nearest neighbour
Usage
search.neighbour(vdist, k)
Arguments
vdist |
distance vector of point with other points |
k |
number of neighbours |
Value
id of the Kth nearest neighbour
See Also
Examples
vdist=c(0,2,1,5,7,1,3)
id<-search.neighbour(vdist,2)
[Package RclusTool version 0.91.6 Index]