apakNearestNeighbour.Distances.All(DataMatrix)
Excel
=apakNearestNeighbour.Distances.All(DataMatrix)Result
Returns the distances of each data point to its nearest neighbors as a (c - 1) x c matrix; row k contains the distance of each data point to its 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."
