public class DoublePolynomial extends Kernel<double[]>
| Constructor and Description |
|---|
DoublePolynomial()
Default constructor, d = 2
|
DoublePolynomial(int degree)
Constructor specifying the degree of the polynomial kernel
|
| Modifier and Type | Method and Description |
|---|---|
double |
valueOf(double[] t1)
kernel similarity to zero
|
double |
valueOf(double[] t1,
double[] t2)
compute the kernel similarity between two element of input space
|
getKernelMatrix, getNormalizedKernelMatrix, normalizedValueOf, setName, toStringpublic DoublePolynomial()
public DoublePolynomial(int degree)
degree - the exponent to which the dot product is raisedpublic double valueOf(double[] t1,
double[] t2)
Kernel