kern: Calculates the kernel matrix.

Description Usage Arguments Value Examples

View source: R/kernel.R

Description

Calculates the kernel matrix.

Usage

1
2
kern(data, gamma = 1, type = c("gaussian.rbf", "poisson"),
  threads = getOption("liquidSVM.default.threads", 1))

Arguments

data

the data set

gamma

the gamma-parameter

type

kernel type to use: one of "gaussian.rbf","poisson"

threads

how many threads to be used

Value

kernel matrix

Examples

1
2
3
4
5
## Not run: 
kern(trees)
image(kern(trees, 2, "pois"))

## End(Not run)

liquidSVM documentation built on Sept. 15, 2019, 1:02 a.m.