updated niche/fastica

This commit is contained in:
tekhnofiend
2008-01-21 22:34:24 +00:00
parent 310e45f8f5
commit a856e44a01
2 changed files with 5 additions and 8 deletions
+2 -5
View File
@@ -44,12 +44,9 @@ double drand48()
*/
/**
* TODO: This is the raison d'être of this class
* Class for running FastICA Algorithm
*
* Example use:
*
* @code
* TODO: write an example use
* This class takes in a D by N data matrix and runs FastICA
*/
class FastICA {
+3 -3
View File
@@ -120,7 +120,7 @@ namespace linalg {
/**
* Sums over the rows of a M by N matrix and Inits a 1 by N matrix storing
* the sum
* (sum\_vector \f$ \gets \sum_i \vec{A_{row i}} \f$)
* (sum_vector \f$ \gets \sum_i \vec{A_{row i}} \f$)
*/
Matrix* Sum(const Matrix* const A, Matrix *sum_vector) {
index_t n_rows = A -> n_rows();
@@ -160,7 +160,7 @@ namespace linalg {
* Applies function with argument arg to a M by N Matrix and Inits a 1 by N
* matrix to the sum over the transformed rows
* (\f$ \tilde{A}_{i,j} \gets function(A_{i,j}, arg) \f$,
* sum\_vector \f$ \gets \sum_i \vec{\tilde{A}_{row i}} \f$)
* sum_vector \f$ \gets \sum_i \vec{\tilde{A}_{row i}} \f$)
*/
Matrix* MatrixMapSum(double (*function)(double,double),
double arg,
@@ -287,7 +287,7 @@ namespace linalg {
/**
* Multiplies A and B (N by M matrices) entry-wise and Inits a 1 by N matrix
* to the sum over the transformed rows of the result
* (\f$ C = A \bullet B \f$, sum\_vector \f$ \gets \sum_i \vec{C_{row i}} \f$)
* (\f$ C = A \bullet B \f$, sum_vector \f$ \gets \sum_i \vec{C_{row i}} \f$)
*/
Matrix* DotMultiplySum(const Matrix* const A, const Matrix* const B,
Matrix* sum_vector) {