For two vectors
Y a vector of indices
I is returned,
length(I) coincide and
is an element of
X which has minimal distance to
Y[j], for all
In case that there are multiple elements with minimal distance, the smallest
index (the index of the first element with minimal distance) is returned.
Vector of elements among which to find the closest one for each
Vector of elements for which to find the clostest element in
Returns a vector of same length as
X, with indices indicating
which element in
Y is closest.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.