Constructor and Description |
---|
LinearKernel()
Constructs a
LinearKernel with default parameters. |
Modifier and Type | Method and Description |
---|---|
double |
kernelFunction(DataNode[][] x,
int i,
int j)
Calculates the kernel function between two
DataNode s. |
double |
kernelFunction(DataNode[] x,
DataNode[] y)
Calculates the kernel function between two
DataNode s. |
clone, dot, getParameters, setParameters
public LinearKernel()
LinearKernel
with default parameters.public double kernelFunction(DataNode[][] x, int i, int j)
DataNode
s.kernelFunction
in class Kernel
x
- a DataNode
matrixi
- an int
, index to the first DataNode
,
x[i]
j
- an int
, index to the second DataNode
,
x[j]
double
, the kernel function evaluated at
x[i]
and x[j]
public double kernelFunction(DataNode[] x, DataNode[] y)
DataNode
s.kernelFunction
in class Kernel
x
- a DataNode
arrayy
- a DataNode
arraydouble
, the kernel function evaluated at
x
and y
Copyright © 1970-2016 Rogue Wave Software
Built May 19 2016.