Description Usage Arguments Value Author(s)
returns the k nearest neighbours of x in the data, using relative distances.
1 | knneighborRD(x, k, data, defined)
|
x |
A row vector, contianing the data point, who's k nearest neighbours are sought. |
k |
the number of nearest neighbours of x that are sought. |
data |
A matrix containing the data as row vectors. |
defined |
A row vector of the same length as x, containing 1 for each column that is used in the calculation. If not given, all columns are used. |
nn |
A vector containing the row numbers of the k nearest neighbours of x in data |
Raphael Paebst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.