mlbench.circle            package:mlbench            R Documentation

_C_i_r_c_l_e _i_n _a _S_q_u_a_r_e _P_r_o_b_l_e_m

_D_e_s_c_r_i_p_t_i_o_n:

     The inputs of the circle problem are uniformly distributed on the
     'd'-dimensional cube with corners {+-1}.  This is a 2-class
     problem: The first class is a 'd'-dimensional ball in the middle
     of the cube, the remainder forms the second class. The size of the
     ball is chosen such that both classes have equal prior probability
     0.5.

_U_s_a_g_e:

     mlbench.circle(n, d=2)

_A_r_g_u_m_e_n_t_s:

       n: number of patterns to create

       d: dimension of the circle problem

_V_a_l_u_e:

     Returns an object of class '"mlbench.circle"'  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.circle(300,2)
     plot(p)
     #
     # 3d example
     p<-mlbench.circle(300,3)
     plot(p)

