getNN | R Documentation |
Auxiliary function used to compute the neighbors of an instance
getNN(sample, rest, label, D, tableVDM = NULL)
sample |
Index of the sample whose neighbors we want to know |
rest |
Indexes of the samples among which we will search |
label |
Label that must be active, in order to calculate the distances |
D |
mld |
tableVDM |
Dataframe object containing previous calculations for faster processing. If it is empty, the algorithm will be slower |
A vector with the indexes inside rest of the neighbors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.