gainr                  package:gcl                  R Documentation

_C_o_m_p_u_t_e_s _i_n_f_o_r_m_a_t_i_o_n _t_h_e_o_r_e_t_i_c _g_a_i_n _r_a_t_i_o

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

     A function that computes the information theoretic gain ratio.

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

     gainr(a, b)

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

       a: attribute values

       b: attribute values

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

     Returns the gain ratio.

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

     Staal A. Vinterbo staal@dsg.harvard.edu

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

     'gain'

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

     a <- round(runif(10))
     b <- round(runif(10))
     gain(a,b)

