public class IndexDoubleLinear extends Kernel<double[]>
Constructor and Description |
---|
IndexDoubleLinear(int feature)
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 IndexDoubleLinear(int feature)
feature
- the index of the componentpublic double valueOf(double[] t1, double[] t2)
Kernel
public double valueOf(double[] t1)
Kernel
public void setIndex(int i)