CKnowledgeBase             package:FKBL             R Documentation

_C_r_e_a_t_e_s _a _K_n_o_w_l_e_d_g_e _B_a_s_e

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

     This is the implementation in R of a Knowledge Base. It provides a
     wrapper to create the appropriate list with the appropriate codes.
     Also, it does several checks to ensure the conrcondance between
     the rules and partitions. Basically it checks there are at least
     one rule provided, the rules must have the same amount of
     variables and there must be a partition for each variable in the
     rule.

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

      CKnowledgeBase(R,P,ncls=NULL, error=1)

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

     Takes the rules, the partitions, and the number of classes.

       R: The rules.

       P: The partitions.

    ncls: The number of classes, optional, as it is calculated
          automatically.

   error: The error obtained with the train data and the Knowledge
          Base.

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

     Returns a list, with the set of rules, the set of partitions, the 
     number of classes and the error in training. 

     list(Rules=R, Partitions=P, numClasses=as.integer(ncls), 
     error=as.double(error))

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

      data(R)
      data(P)
      CKnowledgeBase(R,P) # ncls=3

