src/fastica.c File Reference

#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)


Function Documentation

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().

static mat mat_pow_one_by_two ( mat  m  )  [static]

static mat mat_tanh ( mat  m  )  [static]

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]

static ivec PCAmat ( mat  vectors,
int  firstEig,
int  lastEig,
int  verbose,
mat  D,
mat  E 
) [static]

static vec remmean ( mat  vectors,
mat  newVectors 
) [static]

static mat selcol ( mat  oldMatrix,
ivec  maskVector 
) [static]

static int vec_is_negative ( vec  v  )  [static]

Definition at line 30 of file fastica.c.

References vec_length().

Referenced by whitenv().

static vec vec_tanh ( 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]


Hosted by
Copyright (C) 2005-2006 Hervé Jégou
Vivien Chappelier
Francois Cayre
libit logo courtesy of Jonathan Delhumeau