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

PredKernel is the class that computes the kernel matrix for prediction.

#include <predkernel.h>

Inheritance diagram for gurls::PredKernel< T >:

List of all members.

Public Member Functions

virtual GurlsOptionsListexecute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0
 Computes the kernel matrix necessary for predicting the labels associated to X.

Static Public Member Functions

static PredKernel< T > * factory (const std::string &id) throw (BadPredKernelCreation)
 Factory function returning a pointer to the newly created object.

Detailed Description

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

Definition at line 76 of file predkernel.h.


Member Function Documentation

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

Implemented in gurls::PredKernelTrainTest< T >.

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

Definition at line 97 of file predkernel.h.

    {
        if(id == "traintest")
            return new PredKernelTrainTest<T>;

        throw BadPredKernelCreation(id);
    }

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