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

Confidence is the class that computes a confidence score for the predicted labels.

#include <confidence.h>

Inheritance diagram for gurls::Confidence< T >:

List of all members.

Public Member Functions

virtual GurlsOptionsListexecute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0
 Computes a confidence score for the predicted labels specified in the field pred of opt.

Static Public Member Functions

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

Detailed Description

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

Definition at line 83 of file confidence.h.


Member Function Documentation

template<typename T>
virtual GurlsOptionsList* gurls::Confidence< T >::execute ( const gMat2D< T > &  X,
const gMat2D< T > &  Y,
const GurlsOptionsList opt 
) [pure virtual]
Parameters:
Xnot used
Ynot used
optoptions with the following:
  • pred (settable with the class Prediction and its subclasses)
Returns:
ret, a GurlsOptionList with the following fields:
  • confidence = array containing the confidence score for each row of the field pred of opt.
  • labels = array containing predicted class for each row of the field pred of opt.

Implemented in gurls::ConfBoltzman< T >, gurls::ConfBoltzmanGap< T >, gurls::ConfMaxScore< T >, and gurls::ConfGap< T >.

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

Definition at line 105 of file confidence.h.

    {
        if(id == "boltzman")
            return new ConfBoltzman<T>;
        if(id == "boltzmangap")
            return new ConfBoltzmanGap<T>;
        if(id == "gap")
                return new ConfGap<T>;
        if(id == "maxscore")
            return new ConfMaxScore<T>;
        throw BadConfidenceCreation(id);
    }

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