latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class serialPCA More...
#include <ltiSerialPCA.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () 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 |
the parameters for the class serialPCA
lti::serialPCA< T >::parameters::parameters | ( | void | ) | [inline] |
default constructor
Reimplemented from lti::linearAlgebraFunctor::parameters.
References lti::serialPCA< T >::parameters::autoDim, lti::serialPCA< T >::parameters::eigen, lti::serialPCA< T >::parameters::resultDim, lti::serialPCA< T >::parameters::useCorrelation, and lti::serialPCA< T >::parameters::whitening.
Referenced by lti::serialPCA< T >::parameters::clone().
lti::serialPCA< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::linearAlgebraFunctor::parameters.
References lti::serialPCA< T >::parameters::copy(), and lti::serialPCA< T >::parameters::eigen.
lti::serialPCA< T >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::linearAlgebraFunctor::parameters.
References lti::serialPCA< T >::parameters::eigen.
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().
parameters& lti::serialPCA< T >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::linearAlgebraFunctor::parameters.
References lti::serialPCA< T >::parameters::autoDim, lti::functor::parameters::clone(), lti::functor::parameters::copy(), lti::serialPCA< T >::parameters::eigen, lti::serialPCA< T >::parameters::resultDim, lti::serialPCA< T >::parameters::useCorrelation, and lti::serialPCA< T >::parameters::whitening.
Referenced by lti::serialPCA< T >::parameters::operator=(), and lti::serialPCA< T >::parameters::parameters().
const char* lti::serialPCA< T >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::linearAlgebraFunctor::parameters.
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().
virtual bool lti::serialPCA< T >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, virtual] |
read the parameters from the given ioHandler
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. |
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.
virtual bool lti::serialPCA< T >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, virtual] |
write the parameters in the given ioHandler
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. |
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().
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().
eigenSystem<T>* lti::serialPCA< T >::parameters::eigen |
The eigensystem functor used for computing eigenvectors.
Referenced by lti::serialPCA< T >::parameters::copy(), lti::serialPCA< T >::parameters::parameters(), and lti::serialPCA< T >::parameters::~parameters().
int lti::serialPCA< T >::parameters::resultDim |
This is the dimension of the reduced vectors.
Default value: 3
Referenced by lti::serialPCA< T >::parameters::copy(), lti::serialPCA< T >::parameters::parameters(), lti::serialPCA< T >::parameters::read(), and lti::serialPCA< T >::parameters::write().
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().
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().