mlbench.spirals           package:mlbench           R Documentation

_T_w_o _S_p_i_r_a_l_s _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 spirals problem are points on two entangled
     spirals. If 'sd>0', then Gaussian noise is added to each data
     point. 'mlbench.1spiral' creates a single spiral.

_U_s_a_g_e:

     mlbench.spirals(n, cycles=1, sd=0)
     mlbench.1spiral(n, cycles=1, sd=0)

_A_r_g_u_m_e_n_t_s:

       n: number of patterns to create

  cycles: the number of cycles each spiral makes

      sd: standard deviation of data points around the spirals

_V_a_l_u_e:

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

       x: input values

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

_E_x_a_m_p_l_e_s:

     # 1 cycle each, no noise
     p<-mlbench.spirals(300)
     plot(p)
     #
     # 1.5 cycles each, with noise
     p<-mlbench.spirals(300,1.5,0.05)
     plot(p)

