lvqtest                package:class                R Documentation

_C_l_a_s_s_i_f_y _T_e_s_t _S_e_t _f_r_o_m _L_V_Q _C_o_d_e_b_o_o_k

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     lvqtest(codebk, test)

_A_r_g_u_m_e_n_t_s:

  codebk: codebook object returned by other LVQ software 

    test: matrix of test examples 

_D_e_t_a_i_l_s:

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

_V_a_l_u_e:

     factor of classification for each row of `x'

_S_e_e _A_l_s_o:

     `lvqinit', `olvq1'

_E_x_a_m_p_l_e_s:

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

