Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary

Fields inherited from class fr.lip6.kernel.Kernel
`name`

Constructor Summary
`IndexDoubleLinear(int feature)`

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 fr.lip6.kernel.Kernel
`getKernelMatrix, getNormalizedKernelMatrix, normalizedValueOf, setName, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### IndexDoubleLinear

    public IndexDoubleLinear(int feature)

Method Detail

### 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 element
    `t2` - 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD