Learn R Programming

RclusTool (version 0.91.61)

search.neighbour: Search neighbour

Description

search.neighbour give the id of the Kth nearest neighbour

Usage

search.neighbour(vdist, k)

Value

id of the Kth nearest neighbour

Arguments

vdist

distance vector of point with other points

k

number of neighbours

See Also

computeGaussianSimilarityZP

Examples

Run this code

vdist=c(0,2,1,5,7,1,3)

id<-search.neighbour(vdist,2)

Run the code above in your browser using DataLab