Description Usage Arguments Details Value Examples
Find k or fixed radius nearest neighbors of each observation(row) matrix y in matrix x
1 |
x |
Numeric matrix |
y |
Numneric matrix |
k |
Number of nearest neighbors |
r |
Radius for nearest neighbors |
method |
(string or function) Distance metric passed to 'proxy::dist' |
... |
Additional arguments are sent to
|
Exactly one among k or r has to be provided
Object of class 'nn'. A list with these elements:
triplet: Matrix with three columns: row, col and distance. For a fixed observation of matrix y (value in 'row'), all corresponding values in 'col' are the indexes of the nearest neighbors in matrix x. All corresponding values in 'distance' are the distances to those nearest neighbors
size: Number of rows of matrix y
sizeX: Number of rows of matrix x
k or r : Depending on the input
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.