centerK: Centering a kernel matrix

View source: R/normalization.R

centerKR 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)

kerntools documentation built on April 3, 2025, 7:52 p.m.