NN.K(CLEg) | R Documentation |
Finding whether predicted class is equal to test class. This is needed for function OptimalK
.
NN.K(K, x, cl)
K |
The nearest neighbor value to be taken |
x |
data frame or matrix |
cl |
defining y vector taking values -1 and 1 for two classes |
test result, a logical value
Shahidul Islam