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

Performance is the class that evaluates prediction performance.

#include <perf.h>

Inheritance diagram for gurls::Performance< T >:

List of all members.

Public Member Functions

virtual GurlsOptionsListexecute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0
 Evaluates prediction performance.

Static Public Member Functions

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

Detailed Description

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

Definition at line 90 of file perf.h.


Member Function Documentation

template<typename T>
virtual GurlsOptionsList* gurls::Performance< 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::PerfMacroAvg< T >, gurls::PerfRmse< T >, and gurls::PerfPrecRec< T >.

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

Definition at line 111 of file perf.h.

    {
        if(id == "precrec")
            return new PerfPrecRec<T>;
        if(id == "macroavg")
            return new PerfMacroAvg<T>;
        if(id == "rmse")
            return new PerfRmse<T>;

        throw BadPerformanceCreation(id);
    }

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