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

lti::sequentialForwardSearch Class Reference

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

#include <ltiSequentialForwardSearch.h>

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

List of all members.

Public Member Functions

 sequentialForwardSearch ()
 sequentialForwardSearch (const sequentialForwardSearch &other)
virtual ~sequentialForwardSearch ()
virtual const char * getTypeName () const
bool apply (const dmatrix &src, const ivector &srcIds, dmatrix &dest)
sequentialForwardSearchcopy (const sequentialForwardSearch &other)
sequentialForwardSearchoperator= (const sequentialForwardSearch &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

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

It is based on the PlusRTakeAwayR Algorithm with parameters r=0 and l=1. It starts with an empty destination matrix. Each iteration inserts the most significant feature from the source data set into the destination until the predetermined number of features is reached.


Constructor & Destructor Documentation

lti::sequentialForwardSearch::sequentialForwardSearch (  ) 

default constructor

lti::sequentialForwardSearch::sequentialForwardSearch ( const sequentialForwardSearch other  ) 

copy constructor

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

destructor


Member Function Documentation

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

copy the nbFeatures best features to the dest matrix

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

returns a pointer to a clone of this functor.

Reimplemented from lti::plusLTakeAwayR.

sequentialForwardSearch& lti::sequentialForwardSearch::copy ( const sequentialForwardSearch 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::sequentialForwardSearch::getParameters (  )  const

returns used parameters

Reimplemented from lti::plusLTakeAwayR.

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

returns the name of this type ("sequentialForwardSearch")

Reimplemented from lti::plusLTakeAwayR.

sequentialForwardSearch& lti::sequentialForwardSearch::operator= ( const sequentialForwardSearch 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