getPart                 package:FKBL                 R Documentation

_P_a_r_t_i_t_i_o_n _O _m_a_t_i_c

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

     It creates automatically a set of partitions for the given  train
     data. Detects the maximum and minimum value of a given variable
     across all the cases of the problem, and sets them as the limits
     of the partition (the minimum as the lowest limit, the maximum as
     the highest limit. Then it divides the partition in the given
     numPart.

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

      getPart(train,numPart)

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

     Takes the train data and the number of partitions.

   train: The train data.

 numPart: The number of divisions.

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

     Returns the set of partitions created.

     The fourth partition created at the example is:

     \begin{ExampleCode} [[4]] [[4]]$numMin [1] 0.0591831

     [[4]]$numMax [1] 0.893645

     [[4]]$part [1] 0.0591831 0.2677986 0.4764140 0.6850295 0.8936450
     \end{ExampleCode}

     The minimum,  0.0591831, is the minimum value of the 4th variable.
     And the maximum, 0.8936450, is the maximum value of the 4th
     variable. The values among them are uniformly distributed between
     them.

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

      data(trainM)
      out<-getPart(trainM,5)

      print(out)

