Marsyas  0.5.0-beta1
Public Member Functions
PCA Class Reference

Principal Component Analysis. More...

#include <PCA.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
 PCA (std::string name)
 PCA (const PCA &a)
void tqli (mrs_real d[], mrs_real e[], mrs_natural m, realvec &z)
void tred2 (realvec &a, mrs_natural m, mrs_real *d, mrs_real *e)
 ~PCA ()

Detailed Description

Principal Component Analysis.

Perform Principal Component Analysis (PCA) on all samples of the incoming realvec of data. The correlation method is taken, with a correlation matrix computed over all samples within the single input realvec. Eigenvalue/Eigenvector calculation is by the QL algorithm (ie. not suitable when the correlation matrix is singular or near singular). Output is the set of input samples projected onto the top "npc" (a MarSystem control) principal components.

Definition at line 42 of file PCA.h.

Constructor & Destructor Documentation

PCA ( std::string  name)

Definition at line 30 of file PCA.cpp.

PCA ( const PCA a)

Definition at line 39 of file PCA.cpp.

~PCA ( )

Definition at line 46 of file PCA.cpp.

Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 53 of file PCA.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 113 of file PCA.cpp.

void tqli ( mrs_real  d[],
mrs_real  e[],
mrs_natural  m,
realvec z 

Definition at line 303 of file PCA.cpp.

void tred2 ( realvec a,
mrs_natural  m,
mrs_real d,
mrs_real e 

Definition at line 213 of file PCA.cpp.

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