mlbench.corners           package:mlbench           R Documentation

_C_o_r_n_e_r_s _o_f _H_y_p_e_r_c_u_b_e

_D_e_s_c_r_i_p_t_i_o_n:

     The created data are 'd'-dimensional spherical Gaussians with
     standard deviation 'sd' and means at the corners of a
     'd'-dimensional hypercube. The number of classes is 2^d.

_U_s_a_g_e:

     mlbench.corners(n=800, d=3, sides=rep(1,d), sd=0.1)

_A_r_g_u_m_e_n_t_s:

       n: number of patterns to create

       d: dimensionality of hypercube, default is 3

   sides: lengths of the sides of the hypercube, default is to create a
          unit hypercube

      sd: standard deviation

_V_a_l_u_e:

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

       x: input values

 classes: factor of length 'n' with target classes

_E_x_a_m_p_l_e_s:

     p<-mlbench.corners()
     plot(p)

     library("scatterplot3d")
     scatterplot3d(p$x, color=as.numeric(p$classes))

