Learn R Programming

kerntools (version 1.2.0)

centerK: 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)

Value

Centered `K` (class "matrix").

Arguments

K

Kernel matrix (class "matrix").

Examples

Run this code
dat <- matrix(rnorm(250),ncol=50,nrow=5)
K <- Linear(dat)
centerK(K)

Run the code above in your browser using DataLab