mlbench.xor             package:mlbench             R Documentation

_C_o_n_t_i_n_u_o_u_s _X_O_R _B_e_n_c_h_m_a_r_k _P_r_o_b_l_e_m

_D_e_s_c_r_i_p_t_i_o_n:

     The inputs of the XOR problem are uniformly distributed on the
     'd'-dimensional cube with corners {+-1}. Each pair of opposite
     corners form one class, hence the total number of classes is
     2^(d-1)

_U_s_a_g_e:

     mlbench.xor(n, d=2)

_A_r_g_u_m_e_n_t_s:

       n: number of patterns to create

       d: dimension of the XOR problem

_V_a_l_u_e:

     Returns an object of class '"mlbench.xor"' with components 

       x: input values

 classes: factor vector of length 'n' with target classes

_E_x_a_m_p_l_e_s:

     # 2d example
     p<-mlbench.xor(300,2)
     plot(p)
     #
     # 3d example
     p<-mlbench.xor(300,3)
     plot(p)

