fr.lip6.kernel.typed.index
Class IndexDoubleLinear
java.lang.Object
fr.lip6.kernel.Kernel<double[]>
fr.lip6.kernel.typed.index.IndexDoubleLinear
- All Implemented Interfaces:
- java.io.Serializable
public class IndexDoubleLinear
- extends Kernel<double[]>
Kernel on double[] that performs the product of a specified component j:
k(x,y) = x[j]*y[j]
- Author:
- dpicard
- See Also:
- Serialized Form
| Fields inherited from class fr.lip6.kernel.Kernel |
name |
|
Method Summary |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IndexDoubleLinear
public IndexDoubleLinear(int feature)
valueOf
public double valueOf(double[] t1,
double[] t2)
- Description copied from class:
Kernel
- compute the kernel similarity between two element of input space
- Specified by:
valueOf in class Kernel<double[]>
- Parameters:
t1 - first elementt2 - second element
- Returns:
- the kernel value
valueOf
public double valueOf(double[] t1)
- Description copied from class:
Kernel
- kernel similarity to zero
- Specified by:
valueOf in class Kernel<double[]>
- Parameters:
t1 - the element to compute the similarity to zero
setIndex
public void setIndex(int i)