com.rapidminer.tools.math.kernels
Class RBFKernel
java.lang.Object
com.rapidminer.tools.math.kernels.Kernel
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
| 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 |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RBFKernel
public RBFKernel()
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