EuclideanDist | R Documentation |
Compute euclidean nearest neighbor distances.
EuclideanDist(data, ka)
data |
An M x d matrix with M rows of data points and d columns of features. |
ka |
Number of nearest neighbors. See details from |
Returns the distance matrix.
{ dist.mat <- EuclideanDist(iris[,1:2], ka = 10) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.