Compute euclidean nearest neighbor distances.
EuclideanDist(data, ka)
An M x d matrix with M rows of data points and d columns of features.
Number of nearest neighbors. See details from nn2
.
Returns the distance matrix.
{
dist.mat <- EuclideanDist(iris[,1:2], ka = 10)
}