apakNearestNeighbour.Distances.Averages(DataMatrix, k)
Excel
=apakNearestNeighbour.Distances.Averages(DataMatrix, k)Result
Returns the average distance of each data point to its k nearest neighbors as a 1 x c vector.
Syntax
DataMatrix: r x c data matrix
k: optional; number of nearest neighbors to average over, between 1 and c - 1, or 0 for all other data points; default: 0
Remarks
Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."
