Description Usage Arguments Value Author(s)
Returns the index of the nearest neighbour of a given point of the data, using relative distances.
1 |
data |
A matrix containing n data points as row vectors. |
i |
The index (row number) of the data point who's nearest neighbour is sought. |
defined |
A row vector with 1 for all columns of the data to be used. If missing, all columns are used. |
nNInd |
The index of the nearest neighbour of data[i,] |
Raphael Paebst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.