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

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

public class SigmoidKernel
extends Kernel

Returns the value of a Sigmoid kernel of both examples.

Version:
$Id: SigmoidKernel.java,v 1.4 2006/08/03 14:39:35 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  double a
          The parameter a of the sigmoid kernel.
private  double b
          The parameter b of the sigmoid 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
SigmoidKernel()
           
 
Method Summary
 double calculateDistance(double[] x1, double[] x2)
          Subclasses must implement this method.
 int getType()
          Must return one out of KERNEL_DOT, KERNEL_RADIAL, KERNEL_POLYNOMIAL, or KERNEL_SIGMOID.
 void readKernelParameters(java.io.ObjectInputStream in)
          Reads the kernel parameters from the given stream.
 void setSigmoidParameters(double a, double b)
          Sets the parameters of this Sigmoid kernel to the given values a and b.
 void writeKernelParameters(java.io.ObjectOutputStream out)
          Writes the kernel parameters into the given stream.
 
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

a

private double a
The parameter a of the sigmoid kernel.


b

private double b
The parameter b of the sigmoid kernel.

Constructor Detail

SigmoidKernel

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


setSigmoidParameters

public void setSigmoidParameters(double a,
                                 double b)
Sets the parameters of this Sigmoid kernel to the given values a and b.


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
Reads the kernel parameters from the given stream.

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


writeKernelParameters

public void writeKernelParameters(java.io.ObjectOutputStream out)
                           throws java.io.IOException
Writes the kernel parameters into the given stream.

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



Copyright © 2001-2006