#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <it/fastica.h>
#include <it/source.h>
#include <it/random.h>
#include <it/linalg.h>
#include <it/cplx.h>
#include <it/vec.h>
#include <it/mat.h>
#include <it/io.h>
Go to the source code of this file.
Functions | |
static double | min (double x, double y) |
static int | vec_is_negative (vec v) |
static vec | remmean (mat vectors, mat newVectors) |
static mat | selcol (mat oldMatrix, ivec maskVector) |
static mat | mat_tanh (mat m) |
static vec | vec_tanh (vec v) |
static ivec | getSamples (int max, double percentage) |
static mat | mat_pow_one_by_two (mat m) |
static int | whitenv (mat vectors, mat E, mat D, int verbose, mat newVectors, mat whiteningMatrix, mat dewhiteningMatrix) |
static ivec | PCAmat (mat vectors, int firstEig, int lastEig, int verbose, mat D, mat E) |
static int | fpICA (mat X, mat whiteningMatrix, mat dewhiteningMatrix, char *approach, int numOfIC, char *g, char *finetune, int a1, int a2, int myy, int stabilization, double epsilon, int maxNumIterations, int maxFinetune, char *initState, mat guess, double sampleSize, int verbose, mat A, mat W) |
int | it_ica (mat X, char *approach, int numOfIC, char *g, char *finetune, int a1, int a2, double myy, int stabilization, double epsilon, int maxNumIterations, int maxFinetune, char *initState, mat guess, int sampleSize, int verbose, int jumpPCA, int jumpWhitening, int only, int userNumOfIC, int firstEIG, int lastEIG, mat *icasig, mat *newE, mat *newD, mat *whitesig, mat *whiteningMatrix, mat *dewhiteningMatrix, mat *A, mat *W) |
static int fpICA | ( | mat | X, | |
mat | whiteningMatrix, | |||
mat | dewhiteningMatrix, | |||
char * | approach, | |||
int | numOfIC, | |||
char * | g, | |||
char * | finetune, | |||
int | a1, | |||
int | a2, | |||
int | myy, | |||
int | stabilization, | |||
double | epsilon, | |||
int | maxNumIterations, | |||
int | maxFinetune, | |||
char * | initState, | |||
mat | guess, | |||
double | sampleSize, | |||
int | verbose, | |||
mat | A, | |||
mat | W | |||
) | [static] |
Definition at line 423 of file fastica.c.
References getSamples(), it_assert, it_randn(), ivec_delete(), ivec_sum(), mat_add(), mat_clone(), mat_cols_sum(), mat_copy(), mat_delete(), mat_div_by(), mat_elem_exp(), mat_elem_mul(), mat_elem_pow(), mat_get_col(), mat_get_diag(), mat_gs(), mat_height(), mat_inv(), mat_mul(), mat_mul_by(), mat_mul_transpose_left(), mat_new(), mat_new_diag(), mat_new_mul(), mat_new_ones(), mat_new_transpose(), mat_new_zeros(), mat_pow_one_by_two(), mat_set_col(), mat_set_row, mat_sub(), mat_tanh(), mat_vec_mul(), mat_void(), mat_width(), mat_zeros(), min(), selcol(), vec_abs(), vec_add(), vec_clone(), vec_copy(), vec_delete(), vec_div(), vec_div_by(), vec_exp(), vec_inner_product(), vec_length(), vec_min(), vec_mul(), vec_mul_by(), vec_new(), vec_new_ones(), vec_new_pow(), vec_new_set(), vec_norm(), vec_ones(), vec_randn(), vec_set(), vec_sub(), vec_sum(), vec_sum_sqr(), vec_tanh(), and vec_zeros().
Referenced by it_ica().
static ivec getSamples | ( | int | max, | |
double | percentage | |||
) | [static] |
Definition at line 133 of file fastica.c.
References ivec_new(), and mt19937_rand_real1().
Referenced by fpICA().
Definition at line 148 of file fastica.c.
References mat_delete(), mat_eig_sym(), mat_height(), mat_new(), mat_new_diag(), mat_new_inv(), mat_new_mul(), mat_width(), vec_delete(), and vec_sqrt().
Referenced by fpICA().
Definition at line 108 of file fastica.c.
References mat_height(), mat_new(), and mat_width().
Referenced by fpICA().
static double min | ( | double | x, | |
double | y | |||
) | [static] |
Definition at line 21 of file fastica.c.
Referenced by fpICA(), imat_min_index_submatrix(), mat_min_index_submatrix(), mat_wav_write(), and uniform_quantizer_scalar_quantize().
Definition at line 260 of file fastica.c.
References it_assert, ivec_delete(), ivec_new_zeros(), ivec_sum(), mat_cov(), mat_delete(), mat_diag(), mat_diag_sum(), mat_eig_sym(), mat_height(), vec_clone(), vec_delete(), vec_length(), vec_reverse(), vec_sort(), and vec_sum().
Referenced by it_ica().
Definition at line 45 of file fastica.c.
References mat_copy(), mat_delete(), mat_get_row(), mat_height(), mat_new(), mat_set_col(), mat_sub(), mat_width(), vec_delete(), vec_mean(), and vec_new().
Referenced by it_ica().
Definition at line 74 of file fastica.c.
References it_assert, ivec_length(), ivec_sum(), mat_get_col(), mat_height(), mat_new_zeros(), mat_set_col(), mat_width(), and vec_delete().
static int vec_is_negative | ( | vec | v | ) | [static] |
Definition at line 121 of file fastica.c.
References vec_length(), and vec_new().
Referenced by fpICA().
static int whitenv | ( | mat | vectors, | |
mat | E, | |||
mat | D, | |||
int | verbose, | |||
mat | newVectors, | |||
mat | whiteningMatrix, | |||
mat | dewhiteningMatrix | |||
) | [static] |
Definition at line 177 of file fastica.c.
References it_assert, mat_clone(), mat_cov(), mat_delete(), mat_elem_abs(), mat_elem_sqrt(), mat_get_diag(), mat_height(), mat_inv(), mat_max(), mat_mul(), mat_mul_transpose_right(), mat_new_eye(), mat_sub(), vec_delete(), and vec_is_negative().
Referenced by it_ica().
|
|