com.rapidminer.tools.math.kernels
Class RBFKernel

java.lang.Object
  extended by com.rapidminer.tools.math.kernels.Kernel
      extended by com.rapidminer.tools.math.kernels.RBFKernel
All Implemented Interfaces:
java.io.Serializable

public class RBFKernel
extends Kernel

Returns the value of the RBF kernel of both examples.

Author:
Ingo Mierswa
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.rapidminer.tools.math.kernels.Kernel
KERNEL_ANOVA, KERNEL_DOT, KERNEL_EPANECHNIKOV, KERNEL_GAUSSIAN_COMBINATION, KERNEL_MULTIQUADRIC, KERNEL_POLYNOMIAL, KERNEL_RADIAL, KERNEL_SIGMOID, KERNEL_TYPES, PARAMETER_KERNEL_A, PARAMETER_KERNEL_B, PARAMETER_KERNEL_DEGREE, PARAMETER_KERNEL_GAMMA, PARAMETER_KERNEL_SHIFT, PARAMETER_KERNEL_SIGMA1, PARAMETER_KERNEL_SIGMA2, PARAMETER_KERNEL_SIGMA3, PARAMETER_KERNEL_TYPE
 
Constructor Summary
RBFKernel()
           
 
Method Summary
 double calculateDistance(double[] x1, double[] x2)
          Calculates kernel value of vectors x and y.
 java.lang.String getDistanceFormula(double[] x, java.lang.String[] attributeConstructions)
           
 double getGamma()
           
 int getType()
          Must return one out of KERNEL_DOT, KERNEL_RADIAL, KERNEL_POLYNOMIAL, KERNEL_SIGMOID, KERNEL_ANOVA, KERNEL_EPANECHNIKOV, KERNEL_GAUSSIAN_COMBINATION, or KERNEL_MULTIQUADRIC.
 void setGamma(double gamma)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapidminer.tools.math.kernels.Kernel
createKernel, getAttributeValues, getDistance, getParameters, getSum, init, innerProduct, norm2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RBFKernel

public RBFKernel()
Method Detail

getType

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

Specified by:
getType in class Kernel

setGamma

public void setGamma(double gamma)

getGamma

public double getGamma()

calculateDistance

public double calculateDistance(double[] x1,
                                double[] x2)
Calculates kernel value of vectors x and y.

Specified by:
calculateDistance in class Kernel

getDistanceFormula

public java.lang.String getDistanceFormula(double[] x,
                                           java.lang.String[] attributeConstructions)
Specified by:
getDistanceFormula in class Kernel

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I