latest version v1.9 - last update 10 Apr 2010 |
Almost a functor for computing a principal component analysis. More...
#include <ltiRegularizedPCA.h>
Classes | |
class | parameters |
the parameters for the class regularizedPCA More... | |
Public Member Functions | |
regularizedPCA () | |
regularizedPCA (const regularizedPCA &other) | |
virtual | ~regularizedPCA () |
const parameters & | getParameters () const |
virtual functor * | clone () const |
Protected Member Functions | |
int | checkDim () |
Almost a functor for computing a principal component analysis.
It receives a set of input vectors in form of a matrix (each row of the matrix corresponds to an input vector), which will be transformed with PCA.
The first time you use the apply()-method, the transformation matrix will be computed. You can use this transformation matrix with other data sets using the transform() methods.
Please note that the eigenvector matrices will contain the eigenvector in the COLUMNS and not in the rows, as could be expected. This avoids the requirement of transposing matrices in the vector transformations (see also lti::eigenSystem<T>).
The only difference to PCA is that this receives an additional parameter kappa which is used in dimensionality reductions. If kappa is greater than zero, we keep the dimensionality of the original space and set the insignificant eigenvalues to the value of the smallest significant one times kappa.
lti::regularizedPCA< T >::regularizedPCA | ( | ) |
default constructor
lti::regularizedPCA< T >::regularizedPCA | ( | const regularizedPCA< T > & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::regularizedPCA< T >::~regularizedPCA | ( | ) | [virtual] |
destructor
int lti::regularizedPCA< T >::checkDim | ( | ) | [protected] |
Determines the intrinsic dimensionality of the data set if the user specify autoDim, otherwise return parameters::resultDim.
The member usedDimensionality will be set with the returned value
Reimplemented from lti::principalComponents< T >.
virtual functor* lti::regularizedPCA< T >::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Reimplemented from lti::principalComponents< T >.
const parameters& lti::regularizedPCA< T >::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::principalComponents< T >.