Learn R Programming

RclusTool (version 0.91)

search.neighbour: 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

computeGaussianSimilarityZP

Examples

Run this code
# NOT RUN {
vdist=c(0,2,1,5,7,1,3)

id<-search.neighbour(vdist,2)
# }

Run the code above in your browser using DataLab