apakNearestNeighbour.Points.Neighbour(DataMatrix)
Excel
=apakNearestNeighbour.Points.Neighbour(DataMatrix)Result
Returns the nearest neighbors of each data point as a (c - 1) x c matrix of column indices; row k contains the index of the k-th nearest neighbor.
Syntax
DataMatrix: r x c data matrix
Remarks
Neighbors are ranked by Euclidean distance; ties are broken by the lower column index. A data point is never its own neighbor, even if other data points have the same coordinates.
Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."
