kernel.matrix {KSPM}R Documentation

Kernel matrix

Description

These functions transform a n \times p matrix into a n \times n kernel matrix.

Usage

kernel.matrix(Z, whichkernel, rho = NULL, gamma = NULL, d = NULL)

Arguments

Z

a n \times p matrix

whichkernel

kernel function

gamma, rho, d

kernel hyperparameters (see details)

Details

Given a n \times p matrix, this function returns a n \times n matrix where each cell represents the similarity between two samples defined by two p-dimensional vectors x and y,

Value

A n \times n matrix.

Author(s)

Catherine Schramm, Aurelie Labbe, Celia Greenwood

See Also

kernel.gaussian, kernel.linear, kernel.polynomial, kernel.equality, kernel.sigmoid, kernel.inverse.quadratic.


[Package KSPM version 0.2.1 Index]