id2ctxt                 package:VLMC                 R Documentation

_V_L_M_C _C_o_n_t_e_x_t _I_D _C_o_n_v_e_r_s_i_o_n

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

     Utility for converting a 'vlmc' state ID to the corresponding
     context.  Of rare interest to the average user.

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

     id2ctxt(id, m=nchar(alpha), alpha=NULL)

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

      id: integer, a context ID such as optionally returned by
          'predict.vlmc'.

       m: integer, the alphabet length.  Defaults to 'nchar(alpha)',
          the alphabet size if that is given.

   alpha: alphabet string

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

     a list (if 'alpha' is not specified) or character vector of the
     same length as 'id', giving the  context (as integer vector or
     single string) of the corresponding id

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

     'predict.vlmc(*, type = "ID")'.

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

         id2ctxt(c(2,3,5,9), alpha = "Ab")
     str(id2ctxt(c(2,3,5,9), 2))

