[
top
|
up
]
1-nearest neighbour classification
Usage
knn1(train, test, class)
Arguments
train
matrix or data frame of training set cases.
test
matrix or data frame of test set cases. A vector will be interpreted as a row vector for a single case.
class
factor of true classification of training set.
Value
factor of classifications of test set.
See Also
knn