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

lti::sequentialBackwardSearch Class Reference

This class implements the sequential backward search algorithm for feature selection. More...

#include <ltiSequentialBackwardSearch.h>

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

List of all members.

Public Member Functions

 sequentialBackwardSearch ()
 sequentialBackwardSearch (const sequentialBackwardSearch &other)
virtual ~sequentialBackwardSearch ()
virtual const char * getTypeName () const
bool apply (const dmatrix &src, const ivector &srcIds, dmatrix &dest)
sequentialBackwardSearchcopy (const sequentialBackwardSearch &other)
sequentialBackwardSearchoperator= (const sequentialBackwardSearch &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

This class implements the sequential backward search algorithm for feature selection.

It is based on the PlusRTakeAwayR algorithm with parameters r=1 and l=0. It starts with all features from the source data an in each iteration the least significant feature is deleted from the destination matrix until the predetermined number of features is reached.


Constructor & Destructor Documentation

lti::sequentialBackwardSearch::sequentialBackwardSearch (  ) 

default constructor

lti::sequentialBackwardSearch::sequentialBackwardSearch ( const sequentialBackwardSearch other  ) 

copy constructor

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

destructor


Member Function Documentation

bool lti::sequentialBackwardSearch::apply ( const dmatrix src,
const ivector srcIds,
dmatrix dest 
)

selects the nbFeatures best features from src and puts them leave them in dest.

Parameters:
src dmatrix with the source data.
srcIds ivector with the ids corresponding to the point in src
dest dmatrix where the result will be left.
Returns:
true if apply successful or false otherwise.
virtual functor* lti::sequentialBackwardSearch::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Reimplemented from lti::plusLTakeAwayR.

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

copy data of "other" functor.

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

Reimplemented from lti::plusLTakeAwayR.

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

returns used parameters

Reimplemented from lti::plusLTakeAwayR.

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

returns the name of this type ("sequentialBackwardSearch")

Reimplemented from lti::plusLTakeAwayR.

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

alias for copy member

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

Reimplemented from lti::plusLTakeAwayR.


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

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