org.knime.base.node.mine.svm.kernel
Class RBFKernel

java.lang.Object
  extended by org.knime.base.node.mine.svm.kernel.RBFKernel
All Implemented Interfaces:
Kernel

public class RBFKernel
extends Object
implements Kernel

RBF Kernel.

Author:
Stefan Ciobaca, University of Konstanz, Nicolas Cebron, University of Konstanz

Constructor Summary
RBFKernel()
           
 
Method Summary
 boolean areValid(double[] params)
          are these parameters ok to be used?
 double evaluate(double[] a, double[] b)
          returns the value of the kernel given vectors a and b.
 double evaluate(DoubleVector a, DoubleVector b)
          evaluate the kernel.
 double getDefaultParameter(int index)
          return the default parameter at the given index.
 int getNumberParameters()
          just 1 parameter (sigma).
 double getParameter(int index)
          return the given parameter.
 String getParameterName(int index)
          get the name of the parameter.
 KernelFactory.KernelType getType()
          
 void setParameter(int index, double value)
          set the given parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RBFKernel

public RBFKernel()
Method Detail

evaluate

public double evaluate(DoubleVector a,
                       DoubleVector b)
evaluate the kernel.

Specified by:
evaluate in interface Kernel
Parameters:
a - first vector
b - second vector
Returns:
the result
See Also:
DoubleVector

evaluate

public double evaluate(double[] a,
                       double[] b)
returns the value of the kernel given vectors a and b.

Specified by:
evaluate in interface Kernel
Parameters:
a - the first vector
b - the second vector
Returns:
the result of the kernel in a and b

getNumberParameters

public int getNumberParameters()
just 1 parameter (sigma).

Specified by:
getNumberParameters in interface Kernel
Returns:
1
See Also:
Kernel.getNumberParameters()

getParameterName

public String getParameterName(int index)
get the name of the parameter.

Specified by:
getParameterName in interface Kernel
Parameters:
index - must be 0
Returns:
the name of the parameter
See Also:
Kernel.getParameterName(int)

areValid

public boolean areValid(double[] params)
are these parameters ok to be used?

Specified by:
areValid in interface Kernel
Parameters:
params - the bias and power
Returns:
validity
See Also:
Kernel.areValid(double[])

getDefaultParameter

public double getDefaultParameter(int index)
return the default parameter at the given index. index must be between 0 and getNumberParameters() - 1.

Specified by:
getDefaultParameter in interface Kernel
Parameters:
index - the parameter index.
Returns:
the parameter's default value

setParameter

public void setParameter(int index,
                         double value)
set the given parameter.

Specified by:
setParameter in interface Kernel
Parameters:
index - must be 0
value - which value
See Also:
Kernel.setParameter(int, double)

getParameter

public double getParameter(int index)
return the given parameter.

Specified by:
getParameter in interface Kernel
Parameters:
index - must be 0
Returns:
value of kernel parameter
See Also:
Kernel.getParameter(int)

getType

public KernelFactory.KernelType getType()

Specified by:
getType in interface Kernel
Returns:
the KernelFactory.KernelType of the Kernel


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.