Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

PCAPreprocessor Class Reference

#include <pcapreprocessor.h>

Inheritance diagram for PCAPreprocessor:

Preprocessor Advancable List of all members.

Detailed Description

Implementation of a PCA (Principal Component Analysis) of the input. A principal component transformation is applied to the whole input vector.

Public Member Functions

Private Attributes

Friends


Constructor & Destructor Documentation

PCAPreprocessor::PCAPreprocessor unsigned int    in_rows = 1,
unsigned int    out_rows = 1
 

Constructs a PCA transformation. Initially the transformation is an identical transformation x'=x.

Parameters:
in_rows Number of rows in each input vector.
out_rows Number of rows in each output vector.

PCAPreprocessor::~PCAPreprocessor void   
 

Frees the memory.


Member Function Documentation

double * PCAPreprocessor::exportRepresentation int *    rep_length [virtual]
 

Exports the representation of this preprocessor for use in external objects. Format: first number gives the number of rows for input vectors, second number gives the number of rows output vectors, the following rows elements are the elements of the (m x n) PCA transformation matrix (row by row). The format is [a_11, a_12, ..., a_1n,a_21, ..., a_m1, ..., a_mn].

Parameters:
rep_length Length of the representation vector.
Returns:
A list of parameters that represent the preprocessor.
Warning:
Do not forget to free the memory reserved for the representation!

Implements Preprocessor.

string PCAPreprocessor::getFormatDescription   [virtual]
 

Returns a textual description of the representation format for import/export - Representation.

Implements Preprocessor.

int PCAPreprocessor::importRepresentation const double *    rep,
int    rep_length
[virtual]
 

Imports the data from an externally (e.g. Matlab) trained preprocessor.

Parameters:
rep Representation of the preprocessor as a double vector. Format: first number gives the number of rows for input vectors, second number gives the number of rows output vectors, the following rows elements are the elements of the (m x n) PCA transformation matrix (row by row). The format is [a_11, a_12, ..., a_1n,a_21, ..., a_m1, ..., a_mn].
rep_length Length of the representation vector.
Returns:
-1 if an error occured, 1 for success.

Implements Preprocessor.

int PCAPreprocessor::process const double *    S,
double *    X
[virtual]
 

Preprocess a state representation.

Parameters:
S State of the liquid (= filtered response of the neural microcircuit).
X Target vector where to save the results.
Returns:
-1 if an error occured, 1 for success.

Implements Preprocessor.

void PCAPreprocessor::reset   [virtual]
 

Resets the information stored within the preprocessor.

Implements Preprocessor.