knneighborDistances: return the k indices and the k distances of the k nearest...

Description Arguments Value Author(s)

View source: R/knneighborDistances.R

Description

return the k indices and the k distances of the k nearest neighbors for all points k number of nearest neigbors to find Distances(1:n,1:n) matrix of distances betwenn # the 1:n poits or Distances(1:n2,1) == squareform(Distances(1:n,1:n)

Arguments

k number of nearest neigbors to find Distances(1:n,1:n) matrix of distances betwenn the 1:n poits or Distances(1:n2,1) == squareform(Distances(1:n,1:n)

Value

List with NNind(1:n,1:k) NNInd(i,:) are the indices of the k-nearest Neighbors of data point i NNdists(1:n,1:k) distances to the nearest neighbors

Author(s)

Michael Thrun


Mthrun/Distances documentation built on Feb. 4, 2020, 8:39 p.m.