SciLib.Neuro.SVM
Class PolynomialKernel

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

public class PolynomialKernel
extends KernelHandler
implements Kernel


Field Summary
protected  double c
           
protected  double d
           
 
Fields inherited from class SciLib.Neuro.SVM.KernelHandler
lambda
 
Constructor Summary
PolynomialKernel()
           
PolynomialKernel(double lambda, double c, double d)
           
 
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
 

Field Detail

c

protected double c

d

protected double d
Constructor Detail

PolynomialKernel

public PolynomialKernel(double lambda,
                        double c,
                        double d)

PolynomialKernel

public PolynomialKernel()
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