com.gregdennis.drej
Class LinearKernel

java.lang.Object
  extended by com.gregdennis.drej.LinearKernel
All Implemented Interfaces:
Kernel

public final class LinearKernel
extends java.lang.Object
implements Kernel

A linear kernel of the following form:

K(x1, x2) = x1 · x2

Author:
Greg Dennis (gdennis@mit.edu)

Field Summary
static LinearKernel KERNEL
          Singleton linear kernel.
 
Method Summary
 double eval(GVector x1, GVector x2)
          Evaluates the kernel function at the specified points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KERNEL

public static final LinearKernel KERNEL
Singleton linear kernel.

Method Detail

eval

public double eval(GVector x1,
                   GVector x2)
Description copied from interface: Kernel
Evaluates the kernel function at the specified points.

Specified by:
eval in interface Kernel