latest version v1.9 - last update 10 Apr 2010 |
Abstract base class for all feature selectors. More...
#include <ltiFeatureSelector.h>
Classes | |
class | parameters |
the parameters for the class featureSelector More... | |
Public Member Functions | |
featureSelector () | |
featureSelector (const featureSelector &other) | |
virtual | ~featureSelector () |
virtual const char * | getTypeName () const |
virtual bool | apply (const dmatrix &src, const ivector &srcIds, dmatrix &dest) const =0 |
virtual dmatrix | apply (const dmatrix &src, const ivector &srcIds) const |
featureSelector & | copy (const featureSelector &other) |
featureSelector & | operator= (const featureSelector &other) |
virtual functor * | clone () const =0 |
const parameters & | getParameters () const |
Abstract base class for all feature selectors.
A feature selector extracts the most significant features from a data set.
lti::featureSelector::featureSelector | ( | ) |
default constructor
lti::featureSelector::featureSelector | ( | const featureSelector & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::featureSelector::~featureSelector | ( | ) | [virtual] |
destructor
virtual dmatrix lti::featureSelector::apply | ( | const dmatrix & | src, | |
const ivector & | srcIds | |||
) | const [virtual] |
Extracts the best features of src copies them to dest.
src | dmatrix with the source data. | |
srcIds | ivector with the ids corresponding to src |
virtual bool lti::featureSelector::apply | ( | const dmatrix & | src, | |
const ivector & | srcIds, | |||
dmatrix & | dest | |||
) | const [pure virtual] |
Extracts the best features of src copies them to dest.
src | dmatrix with the source data. | |
srcIds | ivector with the ids corresponding to src | |
dest | dmatrix where the result will be left. |
Implemented in lti::plusLTakeAwayR, and lti::sffs.
virtual functor* lti::featureSelector::clone | ( | ) | const [pure virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
Implemented in lti::plusLTakeAwayR, lti::sequentialBackwardSearch, lti::sequentialForwardSearch, and lti::sffs.
featureSelector& lti::featureSelector::copy | ( | const featureSelector & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::plusLTakeAwayR, lti::sequentialBackwardSearch, lti::sequentialForwardSearch, and lti::sffs.
const parameters& lti::featureSelector::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::functor.
Reimplemented in lti::plusLTakeAwayR, lti::sequentialBackwardSearch, lti::sequentialForwardSearch, and lti::sffs.
virtual const char* lti::featureSelector::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("featureSelector")
Reimplemented from lti::functor.
Reimplemented in lti::plusLTakeAwayR, lti::sequentialBackwardSearch, lti::sequentialForwardSearch, and lti::sffs.
featureSelector& lti::featureSelector::operator= | ( | const featureSelector & | other | ) |
alias for copy member
other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::plusLTakeAwayR, lti::sequentialBackwardSearch, lti::sequentialForwardSearch, and lti::sffs.