koplsCenterKTrTr            package:kopls            R Documentation

_C_e_n_t_e_r_i_n_g _f_u_n_c_t_i_o_n _f_o_r _t_h_e _t_r_a_i_n_i_n_g _k_e_r_n_e_l

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

     Centering function for the training kernel, which is constructed
     from the training matrix Xtr as K = <phi(Xtr), phi(Xtr)> (see
     'koplsKernel' for details on constructing a kernel matrix).

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

     koplsCenterKTrTr(K)

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

       K: The kernel matrix; K = <phi(Xtr), phi(Xtr)>.

_V_a_l_u_e:

     The centered kernel matrix.

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

     Max Bylesjo and Mattias Rantalainen

_R_e_f_e_r_e_n_c_e_s:

     Rantalainen M, Bylesjo M, Cloarec O, Nicholson JK, Holmes E and
     Trygg J. *Kernel-based orthogonal projections to latent structures
     (K-OPLS)*, _J Chemometrics_ 2007; 21:376-385.
     doi:10.1002/cem.1071.

_E_x_a_m_p_l_e_s:

     ## Load data set
     data(koplsExample)

     ## Define kernel function parameter
     sigma<-25

     ## Construct kernel
     Ktr<-koplsKernel(Xtr,NULL,'g',sigma)

     ## Center kernel
     Ktr_centered<-koplsCenterKTrTr(Ktr)

