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

lti::serialPCA< T >::parameters Class Reference

the parameters for the class serialPCA More...

#include <ltiSerialPCA.h>

Inheritance diagram for lti::serialPCA< T >::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::serialPCA< T >::parameters:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual functor::parametersclone () const
virtual bool read (ioHandler &handler, const bool complete=true)
virtual bool write (ioHandler &handler, const bool complete=true) const

Public Attributes

int resultDim
bool autoDim
bool useCorrelation
bool whitening
eigenSystem< T > * eigen

Detailed Description

template<class T>
class lti::serialPCA< T >::parameters

the parameters for the class serialPCA


Constructor & Destructor Documentation

template<class T >
lti::serialPCA< T >::parameters::parameters ( void   )  [inline]
template<class T >
lti::serialPCA< T >::parameters::parameters ( const parameters other  )  [inline]

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::linearAlgebraFunctor::parameters.

References lti::serialPCA< T >::parameters::copy(), and lti::serialPCA< T >::parameters::eigen.

template<class T >
lti::serialPCA< T >::parameters::~parameters (  )  [inline, virtual]

Member Function Documentation

template<class T >
virtual functor::parameters* lti::serialPCA< T >::parameters::clone (  )  const [inline, virtual]

returns a pointer to a clone of the parameters

Reimplemented from lti::linearAlgebraFunctor::parameters.

References lti::serialPCA< T >::parameters::parameters().

template<class T >
parameters& lti::serialPCA< T >::parameters::copy ( const parameters other  )  [inline]
template<class T >
const char* lti::serialPCA< T >::parameters::getTypeName ( void   )  const [inline, virtual]

returns name of this type

Reimplemented from lti::linearAlgebraFunctor::parameters.

template<class T >
parameters& lti::serialPCA< T >::parameters::operator= ( const parameters other  )  [inline]

Assigns the contents of the other object to this object.

References lti::serialPCA< T >::parameters::copy().

template<class T >
virtual bool lti::serialPCA< T >::parameters::read ( ioHandler handler,
const bool  complete = true 
) [inline, virtual]

read the parameters from the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also read, otherwise only the data block will be read.
Returns:
true if write was successful

Reimplemented from lti::linearAlgebraFunctor::parameters.

References lti::serialPCA< T >::parameters::autoDim, lti::ioHandler::readBegin(), lti::ioHandler::readEnd(), lti::serialPCA< T >::parameters::resultDim, lti::serialPCA< T >::parameters::useCorrelation, and lti::serialPCA< T >::parameters::whitening.

template<class T >
virtual bool lti::serialPCA< T >::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [inline, virtual]

write the parameters in the given ioHandler

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::linearAlgebraFunctor::parameters.

References lti::serialPCA< T >::parameters::autoDim, lti::serialPCA< T >::parameters::resultDim, lti::serialPCA< T >::parameters::useCorrelation, lti::serialPCA< T >::parameters::whitening, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().


Member Data Documentation

template<class T >
bool lti::serialPCA< T >::parameters::autoDim

This flag determines, if the functor should determine a maximum allowable dimension itself.

"Maximum dimension" means that the dimension is equal to the number of eigenvalues of the covariance matrix which are larger than zero.

Default value: false

Referenced by lti::serialPCA< T >::parameters::copy(), lti::serialPCA< T >::parameters::parameters(), lti::serialPCA< T >::parameters::read(), and lti::serialPCA< T >::parameters::write().

template<class T >
eigenSystem<T>* lti::serialPCA< T >::parameters::eigen
template<class T >
int lti::serialPCA< T >::parameters::resultDim
template<class T >
bool lti::serialPCA< T >::parameters::useCorrelation

This flag determines if the functor should use the correlation coefficient matrix (flag is true) for eigenvector computation or the covariance matrix (flag is false).

The default is false.

Referenced by lti::serialPCA< T >::parameters::copy(), lti::serialPCA< T >::parameters::parameters(), lti::serialPCA< T >::parameters::read(), and lti::serialPCA< T >::parameters::write().

template<class T >
bool lti::serialPCA< T >::parameters::whitening

This flag determines if the functor should perform a whitening transform of the data.

Whitening means that 1. A PCA is performed, using the covariance matrix for eigenvector computation 2. A scaling of the transformed data by the inverse of the square root of the eigenvalues.

You should set useCorrelation to false if you use whitening.

The default is false.

Referenced by lti::serialPCA< T >::parameters::copy(), lti::serialPCA< T >::parameters::parameters(), lti::serialPCA< T >::parameters::read(), and lti::serialPCA< T >::parameters::write().


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

Generated on Sat Apr 10 15:28:41 2010 for LTI-Lib by Doxygen 1.6.1