koplsCenterKTrTr {kopls} | R Documentation |
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).
koplsCenterKTrTr(K)
K |
The kernel matrix; K = <phi(Xtr), phi(Xtr)>. |
The centered kernel matrix.
Max Bylesjo and Mattias Rantalainen
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.
## 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)