Infomax ICA. More...
Public Member Functions | |
void | applyICA (const Matrix &dataset) |
Sphere the data, apply ica. | |
void | displayMatrix (const Matrix &m) |
Simple display matrix function. | |
void | displayVector (const Vector &m) |
Simple display vector function. | |
void | evaluateICA () |
Run infomax. | |
void | getSources (const Matrix &dataset, Matrix &s) |
Return the source estimates, S. | |
void | getUnmixing (Matrix &w) |
Return the current unmixing matrix estimate. | |
InfomaxICA (double lambda, int B, double epsilon) | |
InfomaxICA () | |
Dummy constructor. | |
void | setB (const int b) |
void | setEpsilon (const double epsilon) |
void | setLambda (const double lambda) |
Friends | |
class | TestInfomaxICA |
Infomax ICA.
Given an observation matrix and input parameters, return the corresponding unmixming matrix, W. Exmaple use:
InfomaxICA *ica = new InfomaxICA(lambda, B, epsilon); Matrix west; ica->applyICA(dataset); ica->getUnmixing(west);
Definition at line 87 of file infomax_ica.h.
InfomaxICA::InfomaxICA | ( | ) |
Dummy constructor.
Definition at line 46 of file infomax_ica.cc.
void InfomaxICA::applyICA | ( | const Matrix & | dataset | ) |
Sphere the data, apply ica.
This is the first function to call after initializing the variables.
Definition at line 61 of file infomax_ica.cc.
References GenMatrix< T >::Copy(), and evaluateICA().
void InfomaxICA::displayMatrix | ( | const Matrix & | m | ) |
Simple display matrix function.
Definition at line 274 of file infomax_ica.cc.
void InfomaxICA::displayVector | ( | const Vector & | m | ) |
Simple display vector function.
Definition at line 287 of file infomax_ica.cc.
References GenVector< T >::length().
void InfomaxICA::evaluateICA | ( | ) |
Run infomax.
Call this after initialization and applyICA.
Definition at line 85 of file infomax_ica.cc.
References linalg__private::AddTo(), and linalg__private::Scale().
Referenced by applyICA().
void InfomaxICA::getSources | ( | const Matrix & | dataset, | |
Matrix & | s | |||
) |
Return the source estimates, S.
S is a reference to an uninitialized matrix.
Definition at line 307 of file infomax_ica.cc.
void InfomaxICA::getUnmixing | ( | Matrix & | w | ) |
Return the current unmixing matrix estimate.
Requires a reference to an uninitialized matrix.
Definition at line 299 of file infomax_ica.cc.