Polynomial-Kernel: Quickly calculate a polynomial kernel without kernlab

Description Usage Arguments Value

Description

This is an alternative to using kernlab to construct a kernel function.

Usage

1
PolyKernel(X, scale = 1, offset = 1, degree = 2)

Arguments

X

a matrix of numeric data

scale

a scale parameter. defaults to 1.

offset

an offset parameter. defaults to 1.

degree

the degree of the polynomial. defaults to 2.

Value

an n-by-n dimensional matrix.


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.