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

lti::featureSelector Class Reference

Abstract base class for all feature selectors. More...

#include <ltiFeatureSelector.h>

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

List of all members.

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
featureSelectorcopy (const featureSelector &other)
featureSelectoroperator= (const featureSelector &other)
virtual functorclone () const =0
const parametersgetParameters () const

Detailed Description

Abstract base class for all feature selectors.

A feature selector extracts the most significant features from a data set.


Constructor & Destructor Documentation

lti::featureSelector::featureSelector (  ) 

default constructor

lti::featureSelector::featureSelector ( const featureSelector other  ) 

copy constructor

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

destructor


Member Function Documentation

virtual dmatrix lti::featureSelector::apply ( const dmatrix src,
const ivector srcIds 
) const [virtual]

Extracts the best features of src copies them to dest.

Parameters:
src dmatrix with the source data.
srcIds ivector with the ids corresponding to src
Returns:
the data set, that contains only the extracted features
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.

Parameters:
src dmatrix with the source data.
srcIds ivector with the ids corresponding to src
dest dmatrix where the result will be left.
Returns:
true if apply successful or false otherwise.

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.

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

Reimplemented from lti::functor.

Reimplemented in lti::plusLTakeAwayR, lti::sequentialBackwardSearch, lti::sequentialForwardSearch, and lti::sffs.

const parameters& lti::featureSelector::getParameters (  )  const
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

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

Reimplemented from lti::functor.

Reimplemented in lti::plusLTakeAwayR, lti::sequentialBackwardSearch, lti::sequentialForwardSearch, and lti::sffs.


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

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