jnisvmlight
Class LinearKernel


java.lang.Object

  extended by jnisvmlight.Kernel

      extended by jnisvmlight.LinearKernel

All Implemented Interfaces:
java.io.Serializable

public class LinearKernel
extends Kernel

A linear kernel. Computes the scalar (inner) product of two feature vectors and is the default inner kernel of all the other kernel implementations.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jnisvmlight.Kernel
m_kernel
 
Constructor Summary
LinearKernel()
           
 
Method Summary
 double evaluate(FeatureVector v1, FeatureVector v2)
           
 
Methods inherited from class jnisvmlight.Kernel
getNestedKernel, setNestedKernel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearKernel


public LinearKernel()
Method Detail

evaluate


public double evaluate(FeatureVector v1,

                       FeatureVector v2)
Specified by:
evaluate in class Kernel