knneigh.vect {dprep} | R Documentation |
Function that returns the distance from a vector "x" to its k-nearest-neighbors in the matrix "data"
knneigh.vect(x, data, k)
x |
A given instance of the data matrix |
data |
The name of the data matrix |
k |
The number of neigbors |
Caroline Rodriguez