For internal use only
a vector of distances
Used internally to find the nearest neighbors.
It searches in lower (or upper) triangular matrix. Therefore this must be the format of the
input data. The piece of code int
len = (sqrt(X.size()*8+1)+1)/2 generated an error in CRAN
sqrt cannot be applied to integers.
a vector of the indices of the nearest neighbors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.