predict-methods          package:flexclust          R Documentation

_P_r_e_d_i_c_t _C_l_u_s_t_e_r _M_e_m_b_e_r_s_h_i_p

_D_e_s_c_r_i_p_t_i_o_n:

     Return either the cluster membership of training data or predict
     for new data.

_U_s_a_g_e:

     ## S4 method for signature 'kccasimple':
     predict(object, newdata, ...)
     ## S4 method for signature 'flexclust, missing':
     cluster(object)
     ## S4 method for signature 'flexclust, ANY':
     cluster(object, newdata, ...)

_A_r_g_u_m_e_n_t_s:

  object: Object of class inheriting from '"flexclust"'.

 newdata: An optional data matrix with the same number of columns as
          the cluster centers. If omitted, the fitted values are used.

     ...: Currently not used.

_D_e_t_a_i_l_s:

     'cluster' can be used on any object of class '"flexclust"' and
     returns the cluster memberships of the training data.

     'predict' can be used only on objects of class '"kcca"' (which
     inherit from '"flexclust"'). If no 'newdata' argument is
     specified, the function is identical to 'cluster', if 'newdata' is
     specified, then cluster memberships for the new data are
     predicted. 'cluster(object, newdata, ...)' is an alias for
     'predict(object, newdata, ...)'.

_A_u_t_h_o_r(_s):

     Friedrich Leisch

