SciLib.Neuro.SVM
Class LinearKernel

java.lang.Object
  extended by SciLib.Neuro.SVM.KernelHandler
      extended by SciLib.Neuro.SVM.LinearKernel
All Implemented Interfaces:
Kernel

public class LinearKernel
extends KernelHandler
implements Kernel


Field Summary
 
Fields inherited from class SciLib.Neuro.SVM.KernelHandler
lambda
 
Constructor Summary
LinearKernel(double lambda)
           
 
Method Summary
 double kernel(matrix patterns, int i1, int i2)
           
 double kernel(matrix patterns, int i1, vector x)
           
 int kernelType()
           
 
Methods inherited from class SciLib.Neuro.SVM.KernelHandler
getParameter, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface SciLib.Neuro.SVM.Kernel
getParameter, setParameter
 

Constructor Detail

LinearKernel

public LinearKernel(double lambda)
Method Detail

kernelType

public int kernelType()
Specified by:
kernelType in interface Kernel
Overrides:
kernelType in class KernelHandler

kernel

public double kernel(matrix patterns,
                     int i1,
                     int i2)
Specified by:
kernel in interface Kernel
Overrides:
kernel in class KernelHandler

kernel

public double kernel(matrix patterns,
                     int i1,
                     vector x)
Specified by:
kernel in interface Kernel
Overrides:
kernel in class KernelHandler