LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::recognitionRateOfSubset Class Reference

Computes the average recognition rate of a given subset of features from a data set. More...

#include <ltiRecognitionRateOfSubset.h>

Inheritance diagram for lti::recognitionRateOfSubset:
Inheritance graph
[legend]
Collaboration diagram for lti::recognitionRateOfSubset:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class recognitionRateOfSubset More...

Public Member Functions

 recognitionRateOfSubset ()
 recognitionRateOfSubset (const recognitionRateOfSubset &other)
virtual ~recognitionRateOfSubset ()
virtual const char * getTypeName () const
virtual void setSrc (const dmatrix &src, const ivector &srcIds)
virtual bool apply (const std::list< int > &in, double &value)
recognitionRateOfSubsetcopy (const recognitionRateOfSubset &other)
recognitionRateOfSubsetoperator= (const recognitionRateOfSubset &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

Computes the average recognition rate of a given subset of features from a data set.

A cross validation is performed on the given subset of features. The average recognition rate of the used classifier, is returned as the value of this cost function.


Constructor & Destructor Documentation

lti::recognitionRateOfSubset::recognitionRateOfSubset (  ) 

default constructor

lti::recognitionRateOfSubset::recognitionRateOfSubset ( const recognitionRateOfSubset other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::recognitionRateOfSubset::~recognitionRateOfSubset (  )  [virtual]

destructor


Member Function Documentation

virtual bool lti::recognitionRateOfSubset::apply ( const std::list< int > &  in,
double &  value 
) [virtual]

computes the average recognition rate of the given feature subset using cross validation

Parameters:
in std::list with the features that are included in this test.
value the resulting average recognition rate
Returns:
true if apply successful or false otherwise.

Implements lti::costFunction.

virtual functor* lti::recognitionRateOfSubset::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

recognitionRateOfSubset& lti::recognitionRateOfSubset::copy ( const recognitionRateOfSubset other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::costFunction.

const parameters& lti::recognitionRateOfSubset::getParameters (  )  const

returns used parameters

Reimplemented from lti::functor.

virtual const char* lti::recognitionRateOfSubset::getTypeName (  )  const [virtual]

returns the name of this type ("recognitionRateOfSubset")

Reimplemented from lti::costFunction.

recognitionRateOfSubset& lti::recognitionRateOfSubset::operator= ( const recognitionRateOfSubset other  ) 

alias for copy member

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::costFunction.

virtual void lti::recognitionRateOfSubset::setSrc ( const dmatrix src,
const ivector srcIds 
) [virtual]

Set the src data, that is used in applies.

This must be done before you call one of the apply methods. Later each feature can be adressed by its column number.

Reimplemented from lti::costFunction.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:26:57 2010 for LTI-Lib by Doxygen 1.6.1