Constructor and Description |
---|
RadialBasisKernel()
Constructs a radial basis kernel with a value
of 1.0.
|
RadialBasisKernel(double gamma)
Constructs a radial basis kernel.
|
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. |
void |
setParameters(double[] kParams)
Sets the parameters for the radial basis kernel.
|
clone, dot, getParameters
public RadialBasisKernel()
public RadialBasisKernel(double gamma)
gamma
- a double
, the radial basis kernel free
parameterpublic 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
public void setParameters(double[] kParams)
setParameters
in class Kernel
kParams
- a double
array of length 1 containing the
parameter value: kParams[0]
=
Default: kParams[0]
==1.0
Copyright © 1970-2016 Rogue Wave Software
Built May 19 2016.