which_min_vector | R Documentation |
For internal use only
which_min_vector(X)
X |
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
since sqrt
cannot be applied to integers.
a vector of the indices of the nearest neighbors
Antoine Stevens
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.