public class Linear extends java.lang.Object implements IMercerKernel<double[]>
| Constructor and Description |
|---|
Linear()
Constructs a new Linear Kernel.
|
Linear(double constant)
Constructs a new Linear kernel.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Function(double[] x,
double[] y)
Linear kernel function.
|
double |
getConstant()
Gets the kernel's intercept term.
|
void |
setConstant(double value)
Sets the kernel's intercept term.
|
public Linear(double constant)
constant - A constant intercept term. Default is 1.public Linear()
public double getConstant()
public void setConstant(double value)
value - Kernel's intercept term.public double Function(double[] x,
double[] y)
Function in interface IMercerKernel<double[]>x - Vector y - Vector