K-Nearest Neighbor Classifier
[W,K,E] = KNNC(A,K)
Computation of the K-nearest neighbor classifier for the dataset A. The resulting classifier W is automatically evaluated by KNN_MAP.
For multi-class problems with many classes (e.g. > 100) evaluation is slow if K = 1. For that situation the use of FNNC may be considered.
Warning: class prior probabilities in A are neglected.