\HeaderA{lvqtest}{Classify Test Set from LVQ Codebook}{lvqtest}
\keyword{classif}{lvqtest}
\begin{Description}\relax
Classify a test set by 1-NN from a specified LVQ codebook.
\end{Description}
\begin{Usage}
\begin{verbatim}
lvqtest(codebk, test)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{codebk}] codebook object returned by other LVQ software

\item[\code{test}] matrix of test examples

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
uses 1-NN to classify each test example against the codebook.
\end{Details}
\begin{Value}
factor of classification for each row of \code{x}
\end{Value}
\begin{References}\relax
Ripley, B. D. (1996)
\emph{Pattern Recognition and Neural Networks.} Cambridge.

Venables, W. N. and Ripley, B. D. (2002)
\emph{Modern Applied Statistics with S.} Fourth edition.  Springer.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{lvqinit}{lvqinit}}, \code{\LinkA{olvq1}{olvq1}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
# The function is currently defined as
function(codebk, test) knn1(codebk$x, test, codebk$cl)
\end{ExampleCode}
\end{Examples}

