|
latest version v1.9 - last update 10 Apr 2010 |
|
Base class for all cost functions. More...
#include <ltiCostFunction.h>


Public Member Functions | |
| costFunction () | |
| costFunction (const costFunction &other) | |
| virtual | ~costFunction () |
| virtual const char * | getTypeName () const |
| costFunction & | copy (const costFunction &other) |
| costFunction & | operator= (const costFunction &other) |
| virtual void | setSrc (const dmatrix &src, const ivector &srcIds) |
| virtual bool | apply (const ivector &in, double &dist) |
| virtual double | apply (const ivector &in) |
| virtual double | apply (const std::list< int > &in) |
| virtual bool | apply (const std::list< int > &in, double &value)=0 |
Protected Attributes | |
| dmatrix | pSrc |
| ivector | pSrcIds |
Base class for all cost functions.
The cost functions are used to evaluate feature subsets of data sets. These cost functions are used by the feature selectors.
| lti::costFunction::costFunction | ( | ) |
default constructor
| lti::costFunction::costFunction | ( | const costFunction & | other | ) |
copy constructor
| other | the object to be copied |
| virtual lti::costFunction::~costFunction | ( | ) | [virtual] |
destructor
| virtual bool lti::costFunction::apply | ( | const std::list< int > & | in, | |
| double & | value | |||
| ) | [pure virtual] |
computes the cost function with the given subset of features
| in | std::list with the features that should be inclueded for computing the function | |
| value | the result of the cost function |
Implemented in lti::bhattacharyyaDistOfSubset, lti::mahalanobisDistOfSubset, and lti::recognitionRateOfSubset.
| virtual double lti::costFunction::apply | ( | const std::list< int > & | in | ) | [virtual] |
computes the cost function with the given subset of features
| in | std::list with the features that should be inclueded for computing the function |
| virtual double lti::costFunction::apply | ( | const ivector & | in | ) | [virtual] |
computes the cost function with the given subset of features
| in | ivector with the features that should be included for computing the function |
| virtual bool lti::costFunction::apply | ( | const ivector & | in, | |
| double & | dist | |||
| ) | [virtual] |
computes the cost function with the given subset of features
| in | ivector with the features that should be included. | |
| dist | the result of the cost function. |
| costFunction& lti::costFunction::copy | ( | const costFunction & | other | ) |
copy data of "other" functor.
| other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::bhattacharyyaDistOfSubset, lti::mahalanobisDistOfSubset, and lti::recognitionRateOfSubset.
| virtual const char* lti::costFunction::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("costFunction")
Reimplemented from lti::functor.
Reimplemented in lti::bhattacharyyaDistOfSubset, lti::mahalanobisDistOfSubset, and lti::recognitionRateOfSubset.
| costFunction& lti::costFunction::operator= | ( | const costFunction & | other | ) |
alias for copy member
| other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::bhattacharyyaDistOfSubset, lti::mahalanobisDistOfSubset, and lti::recognitionRateOfSubset.
Set the src data points and ids used for computation of the cost function.
Reimplemented in lti::bhattacharyyaDistOfSubset, lti::mahalanobisDistOfSubset, and lti::recognitionRateOfSubset.
dmatrix lti::costFunction::pSrc [protected] |
the source data points
ivector lti::costFunction::pSrcIds [protected] |
the src ids corresponding to the data points