lvqtest: Classify Test Set from LVQ Codebook

Description Usage Arguments Details Value References See Also Examples

View source: R/lvq.R

Description

Classify a test set by 1-NN from a specified LVQ codebook.

Usage

1
lvqtest(codebk, test)

Arguments

codebk

codebook object returned by other LVQ software

test

matrix of test examples

Details

Uses 1-NN to classify each test example against the codebook.

Value

Factor of classification for each row of x

References

Ripley, B. D. (1996) Pattern Recognition and Neural Networks. Cambridge.

Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.

See Also

lvqinit, olvq1

Examples

1
2
# The function is currently defined as
function(codebk, test) knn1(codebk$x, test, codebk$cl)

Example output

function (codebk, test) 
knn1(codebk$x, test, codebk$cl)

class documentation built on Jan. 13, 2022, 9:07 a.m.

Related to lvqtest in class...