public class DoubleHPolynomial extends Kernel<double[]>
Constructor and Description |
---|
DoubleHPolynomial()
Default constructor, d = 2
|
DoubleHPolynomial(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, getKernelMatrixLine, getNormalizedKernelMatrix, normalizedValueOf, setName, toString
public DoubleHPolynomial()
public DoubleHPolynomial(int degree)
degree
- the exponent to which the dot product is raisedpublic double valueOf(double[] t1, double[] t2)
Kernel