Constructor and Description |
---|
LinearKernel()
Constructs a
LinearKernel with default parameters. |
LinearKernel(LinearKernel linKernel)
Constructs a copy of the input
LinearKernel kernel. |
Modifier and Type | Method and Description |
---|---|
LinearKernel |
clone()
Clones a
LinearKernel kernel. |
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. |
dot, getParameters, setParameters
public LinearKernel()
LinearKernel
with default parameters.public LinearKernel(LinearKernel linKernel)
LinearKernel
kernel.linKernel
- a LinearKernel
kernelpublic LinearKernel clone()
LinearKernel
kernel.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
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]
Copyright © 2020 Rogue Wave Software. All rights reserved.