

encode(snns)                                 R Documentation

_g_e_n_e_r_a_l _e_n_c_o_d_i_n_g _f_o_r _c_l_a_s_s_i_f_i_c_a_t_i_o_n

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

     Encodes the vector @`x' using one-in-n coding.

_U_s_a_g_e_:

     encode(x, code)

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

       x: vector of class labels

    code: matrix with each row containing the code for one
          class

_V_a_l_u_e_:

     Matrix replacing each element of @`x' by the corre-
     sponding row of @`code'.

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

     one.in.n

