centerK {kerntools} | R Documentation |
Centering a kernel matrix
Description
It is equivalent to compute 'K' over centered data (i.e. the mean of each column is subtracted) in Feature Space.
Usage
centerK(K)
Arguments
K |
Kernel matrix (class "matrix"). |
Value
Centered 'K' (class "matrix").
Examples
dat <- matrix(rnorm(250),ncol=50,nrow=5)
K <- Linear(dat)
centerK(K)
[Package kerntools version 1.2.0 Index]