Description Usage Arguments Value
Takes in a matrix and a number, k nearest neighbors
1 |
x |
A matrix of all dots, each row represents a dot |
i |
A numeric represents which row to calculate |
dist |
The method to calculate the distance, default is euclidean distance |
k |
A numeric represents the number of neighbors |
Return a list of k nearest distance and row number
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.