| 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
DataNodes. |
double |
kernelFunction(DataNode[] x,
DataNode[] y)
Calculates the kernel function between two
DataNodes. |
dot, getParameters, setParameterspublic 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)
DataNodes.kernelFunction in class Kernelx - a DataNode arrayy - a DataNode arraydouble, the kernel function evaluated at
x and ypublic double kernelFunction(DataNode[][] x, int i, int j)
DataNodes.kernelFunction in class Kernelx - 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.