This version is non-idiomatic to suit the compiler's quirks, and should not be called directly in the R interpreter.
1 |
distances |
numeric, distance matrix, where rows correspond to training points and columns correspond to test points |
labels |
integer, class labels starting at 1 |
n_class |
integer, number of classes |
k |
integer, number of nearest neighbors to use |
n_train |
integer, number of training points |
n_test |
integer, number of test points |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.