GURLS++  2.0.00
C++ Implementation of GURLS Matlab Toolbox
gurls::Kernel< T > Class Template Reference

Kernel is the class that computes the kernel matrix.

#include <kernel.h>

Inheritance diagram for gurls::Kernel< T >:

List of all members.

Public Member Functions

virtual GurlsOptionsListexecute (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.

Detailed Description

template<typename T>
class gurls::Kernel< T >

Definition at line 90 of file kernel.h.


Member Function Documentation

template<typename T>
virtual GurlsOptionsList* gurls::Kernel< T >::execute ( const gMat2D< T > &  X,
const gMat2D< T > &  Y,
const GurlsOptionsList opt 
) [pure virtual]
Parameters:
Xinput data matrix
Ylabels matrix
optoptions with the different required fields based on the sub-class
Returns:
a GurlsOptionList

Implemented in gurls::KernelRBF< T >, gurls::KernelLinear< T >, and gurls::KernelChisquared< T >.

template<typename T>
static Kernel<T>* gurls::Kernel< T >::factory ( const std::string &  id) throw (BadKernelCreation) [inline, static]
Warning:
The returned pointer is a plain, un-managed pointer. The calling function is responsible of deallocating the object.

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);
    }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends