wccassign               package:wccsom               R Documentation

_A_s_s_i_g_n _p_a_t_t_e_r_n_s _t_o _n_o_d_e_s _i_n _a _S_O_M _n_e_t_w_o_r_k _b_y _W_C_C _v_a_l_u_e

_D_e_s_c_r_i_p_t_i_o_n:

     KNN assignment of patterns to units in a Kohonen map, with maximal
     WCC as the criterion.

_U_s_a_g_e:

     wccassign(x, data)

_A_r_g_u_m_e_n_t_s:

       x: Trained Kohonen map

    data: Data matrix

_V_a_l_u_e:

     Returns a list with components 

 classif: Unit numbers to which rows in the data matrix are assigned

   wccs : wcc value of rows in the data matrix and the units to which
          they are assigned.

_A_u_t_h_o_r(_s):

     Ron Wehrens

_S_e_e _A_l_s_o:

     'WCCSOM'

_E_x_a_m_p_l_e_s:

     data(cepha)
     gr <- somgrid(3,3, "hexagonal")
     set.seed(7)
     x <- WCCSOM(cepha$patterns, grid=gr, trwidth=20, rlen=50,
                 FineTune=FALSE, keep.data=FALSE)
     sombins <- wccassign(x, cepha$patterns)

