public class NormalizedPolynomial extends java.lang.Object implements IMercerKernel<double[]>
| Constructor and Description |
|---|
NormalizedPolynomial()
Constructs a new Normalized Polynomial Kernel.
|
NormalizedPolynomial(int degree)
Constructs a new Normalized Polynomial Kernel.
|
NormalizedPolynomial(int degree,
double constant)
Constructs a new Normalized Polynomial Kernel.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Function(double[] x,
double[] y)
The kernel function.
|
double |
getConstant()
Get the polynomial constant term.
|
int |
getDegree()
Get the degree of the polynomial kernel.
|
void |
setConstant(double constant)
Set the polynomial constant term.
|
void |
setDegree(int degree)
Set the degree of the polynomial kernel.
|
public NormalizedPolynomial()
public NormalizedPolynomial(int degree)
degree - Polynomial degree.public NormalizedPolynomial(int degree,
double constant)
degree - Polynomial degree.constant - Polynomial constant term.public int getDegree()
public void setDegree(int degree)
degree - Degree.public double getConstant()
public void setConstant(double constant)
constant - Constant term.public double Function(double[] x,
double[] y)
IMercerKernelFunction in interface IMercerKernel<double[]>x - Vector x in input space.y - Vector