edu.udo.cs.yale.operator.learner.kernel.evosvm
Class PolynomialKernel

java.lang.Object
  extended by edu.udo.cs.yale.operator.learner.kernel.evosvm.Kernel
      extended by edu.udo.cs.yale.operator.learner.kernel.evosvm.PolynomialKernel

public class PolynomialKernel
extends Kernel

Returns the value of a Polynomial kernel of both examples.

Version:
$Id: PolynomialKernel.java,v 1.6 2006/08/28 12:32:58 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  double degree
          The parameter degree of the polynomial kernel.
private  double shift
          The parameter shift of the polynomial kernel.
 
Fields inherited from class edu.udo.cs.yale.operator.learner.kernel.evosvm.Kernel
KERNEL_DOT, KERNEL_EPANECHNIKOV, KERNEL_GAUSSIAN_COMBINATION, KERNEL_MULTIQUADRIC, KERNEL_POLYNOMIAL, KERNEL_RADIAL, KERNEL_SIGMOID, KERNEL_TYPES
 
Constructor Summary
PolynomialKernel()
           
 
Method Summary
 double calculateDistance(double[] x1, double[] x2)
          Subclasses must implement this method.
 double getDegree()
           
 int getType()
          Must return one out of KERNEL_DOT, KERNEL_RADIAL, KERNEL_POLYNOMIAL, or KERNEL_SIGMOID.
 void readKernelParameters(java.io.ObjectInputStream in)
          Does nothing.
 void setPolynomialParameters(double degree, double shift)
          Sets the used polynomial parameters.
 void writeKernelParameters(java.io.ObjectOutputStream out)
          Does nothing.
 
Methods inherited from class edu.udo.cs.yale.operator.learner.kernel.evosvm.Kernel
createKernel, createKernel, getDistance, getSum, init, innerProduct, norm2, readKernelData, writeKernelData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

degree

private double degree
The parameter degree of the polynomial kernel.


shift

private double shift
The parameter shift of the polynomial kernel.

Constructor Detail

PolynomialKernel

public PolynomialKernel()
Method Detail

getType

public int getType()
Description copied from class: Kernel
Must return one out of KERNEL_DOT, KERNEL_RADIAL, KERNEL_POLYNOMIAL, or KERNEL_SIGMOID.

Specified by:
getType in class Kernel


getDegree

public double getDegree()

setPolynomialParameters

public void setPolynomialParameters(double degree,
                                    double shift)
Sets the used polynomial parameters.


calculateDistance

public double calculateDistance(double[] x1,
                                double[] x2)
Subclasses must implement this method.

Specified by:
calculateDistance in class Kernel


readKernelParameters

public void readKernelParameters(java.io.ObjectInputStream in)
                          throws java.io.IOException
Does nothing.

Specified by:
readKernelParameters in class Kernel
Throws:
java.io.IOException


writeKernelParameters

public void writeKernelParameters(java.io.ObjectOutputStream out)
                           throws java.io.IOException
Does nothing.

Specified by:
writeKernelParameters in class Kernel
Throws:
java.io.IOException



Copyright © 2001-2006