![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
Kernel is the class that computes the kernel matrix.
#include <kernel.h>
Public Member Functions | |
virtual GurlsOptionsList * | execute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0 |
Computes (or loads) the kernel matrix for the data matrix passed in the X matrix. | |
Static Public Member Functions | |
static Kernel< T > * | factory (const std::string &id) throw (BadKernelCreation) |
Factory function returning a pointer to the newly created object. |
virtual GurlsOptionsList* gurls::Kernel< T >::execute | ( | const gMat2D< T > & | X, |
const gMat2D< T > & | Y, | ||
const GurlsOptionsList & | opt | ||
) | [pure virtual] |
X | input data matrix |
Y | labels matrix |
opt | options with the different required fields based on the sub-class |
Implemented in gurls::KernelRBF< T >, gurls::KernelLinear< T >, and gurls::KernelChisquared< T >.
static Kernel<T>* gurls::Kernel< T >::factory | ( | const std::string & | id | ) | throw (BadKernelCreation) [inline, static] |
Definition at line 110 of file kernel.h.
{ if(id == "linear") return new KernelLinear<T>; if(id == "rbf") return new KernelRBF<T>; if(id == "chisquared") return new KernelChisquared<T>; throw BadKernelCreation(id); }