CRule                  package:FKBL                  R Documentation

_C_r_e_a_t_e_s _a _r_u_l_e

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

     This is the implementation in R of a rule.  It provides a wrapper
     to create the appropriate list with the appropriate codes.
     Described in chapter 2, pages 011-025 at Ishibuchi et al.$

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

      CRule(c,a)

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

     Takes the consequent and the antecedent.

       c: The weight of each class of the rule.

       a: The antecedent of the rule.

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

     Returns a list, with the consequent, the antecedent and the length
     of  the antecedet and consequent.

     list(cons=as.double(c), antec=as.integer(a),  elemA=length(a),
     elemC=length(c))

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

      c<-list(0.5,0.75)
      a<-list(0,1,0)
      CRule(c,a)

