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

java.lang.Object
  extended by org.knime.base.node.mine.svm.kernel.KernelFactory

public final class KernelFactory
extends Object

This class is responsible for managing all the kernels that are known to the SVM.

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

Nested Class Summary
static class KernelFactory.KernelType
          The different kernel types.
 
Method Summary
static KernelFactory.KernelType getDefaultKernelType()
          Return a default kernel.
static Kernel getKernel(KernelFactory.KernelType kerneltype)
          Returns a kernel given by its name.
static String[] getKernelNames()
          Returns all the kernels known by this factory.
static int getMaximalParameters()
          For each kernel, look at the number of parameters it requires, and return the highest.
static KernelFactory.KernelType getType(Kernel kernel)
          Given a pointer to a kernel, get its type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultKernelType

public static KernelFactory.KernelType getDefaultKernelType()
Return a default kernel.

Returns:
KernelType

getType

public static KernelFactory.KernelType getType(Kernel kernel)
Given a pointer to a kernel, get its type. If you modify this function, don't forget the constructor.

Parameters:
kernel - instance
Returns:
kernel name

getKernel

public static Kernel getKernel(KernelFactory.KernelType kerneltype)
Returns a kernel given by its name.

Parameters:
kerneltype - the type of the Kernel
Returns:
the requested kernel

getKernelNames

public static String[] getKernelNames()
Returns all the kernels known by this factory.

Returns:
the array of kernel names

getMaximalParameters

public static int getMaximalParameters()
For each kernel, look at the number of parameters it requires, and return the highest.

Returns:
the maximal number of parameters from any of the kernels


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.