public class IndexDoublePolynomial extends Kernel<double[]>
Constructor and Description |
---|
IndexDoublePolynomial(int feature,
int degree)
Constructor specifying the component which is used
|
Modifier and Type | Method and Description |
---|---|
void |
setIndex(int i) |
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, toString
public IndexDoublePolynomial(int feature, int degree)
feature
- the index of the componentdegree
- the degree of the polynomialpublic double valueOf(double[] t1, double[] t2)
Kernel
public double valueOf(double[] t1)
Kernel
public void setIndex(int i)