
Constructs a k-NN classifier for a discriminant projector, with an option to use a subset of the components.
# S3 method for discriminant_projector
classifier(x, colind = NULL, knn = 1, ...)
a classifier object
the discriminant projector object
an optional vector specifying the column indices of the components to use for prediction (NULL by default)
the number of nearest neighbors to consider in the k-NN classifier (default is 1)
extra arguments