search.neighbour: Search neighbour

View source: R/codeSpectral.R

search.neighbourR 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

computeGaussianSimilarityZP

Examples


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

id<-search.neighbour(vdist,2)

RclusTool documentation built on May 29, 2024, 5:23 a.m.