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

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

public class HyperTangentKernel
extends Object
implements Kernel

Hypertangent kernel.

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

Constructor Summary
HyperTangentKernel()
           
 
Method Summary
 boolean areValid(double[] params)
          check if the parameters are valid.
 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()
          2 parameters (kappa and delta).
 double getParameter(int index)
          returns the parameter at given index.
 String getParameterName(int index)
          parameters are "kappa" and "delta".
 KernelFactory.KernelType getType()
          
 void setParameter(int index, double value)
          sets the given parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperTangentKernel

public HyperTangentKernel()
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()
2 parameters (kappa and delta).

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

getParameterName

public String getParameterName(int index)
parameters are "kappa" and "delta".

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

areValid

public boolean areValid(double[] params)
check if the parameters are valid.

Specified by:
areValid in interface Kernel
Parameters:
params - which parameters
Returns:
validity
See Also:
Kernel.areValid(double[])

setParameter

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

Specified by:
setParameter in interface Kernel
Parameters:
index - the index of the parameter to set
value - the value to put into the parameter

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

getParameter

public double getParameter(int index)
returns the parameter at given index.

Specified by:
getParameter in interface Kernel
Parameters:
index - the index of the parameter to get
Returns:
the value of the parameter

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.