latest version v1.9 - last update 10 Apr 2010 |
Computes the average recognition rate of a given subset of features from a data set. More...
#include <ltiRecognitionRateOfSubset.h>
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) |
recognitionRateOfSubset & | copy (const recognitionRateOfSubset &other) |
recognitionRateOfSubset & | operator= (const recognitionRateOfSubset &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
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.
lti::recognitionRateOfSubset::recognitionRateOfSubset | ( | ) |
default constructor
lti::recognitionRateOfSubset::recognitionRateOfSubset | ( | const recognitionRateOfSubset & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::recognitionRateOfSubset::~recognitionRateOfSubset | ( | ) | [virtual] |
destructor
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
in | std::list with the features that are included in this test. | |
value | the resulting average recognition rate |
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.
other | the functor to be copied |
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
other | the functor to be copied |
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.