Classify Test Set from LVQ Codebook
DESCRIPTION:
Classify a test set by 1-NN from a specified LVQ codebook.
USAGE:
lvqtest(codebk, test)
REQUIRED ARGUMENTS:
- codebk
-
codebook object returned by other LVQ software
- test
-
matrix of test examples
VALUE:
factor of classification for each row of
x
DETAILS:
uses 1-NN to classify each test example against the codebook.
SEE ALSO:
,
EXAMPLES:
# The function is currently defined as
function(codebk, test) knn1(codebk$x, test, codebk$cl)