mlbench.2dnormals          package:mlbench          R Documentation

_2-_d_i_m_e_n_s_i_o_n_a_l _G_a_u_s_s_i_a_n _P_r_o_b_l_e_m

_D_e_s_c_r_i_p_t_i_o_n:

     Each of the 'cl' classes consists of a 2-dimensional Gaussian. The
     centers are equally spaced on a circle around the origin with
     radius 'r'.

_U_s_a_g_e:

     mlbench.2dnormals(n, cl=2, r=sqrt(cl), sd=1)

_A_r_g_u_m_e_n_t_s:

       n: number of patterns to create

      cl: number of classes

       r: radius at which the centers of the classes are located

      sd: standard deviation of the Gaussians

_V_a_l_u_e:

     Returns an object of class '"bayes.2dnormals"' with components 

       x: input values

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

_E_x_a_m_p_l_e_s:

     # 2 classes
     p <- mlbench.2dnormals(500,2)
     plot(p)
     # 6 classes
     p <- mlbench.2dnormals(500,6)
     plot(p)

