Giter Club home page Giter Club logo

fast-ica's Introduction

fast-ica

C implementation of FastICA algorithm: the program generates three signals (a sine wave, a square wave and a sawtooth wave), mixes them and tries to reconstruct the original signals using FastICA.

Build:

mkdir build  && cd build
cmake ..
make

Usage:

./fast_ica [STRATEGY [G_FUNCTION [N_SAMPLES [SAMPLING_WINDOW_SIZE [THRESHOLD [ MAX_ITER [VERBOSE]]]]]]

where:

  • strategy can be 0 (Parallel, default) or 1 (Deflation);
  • g_function can be 0 (LogCosh, default), 1 (Exp) or 2 (Cube);
  • n_samples must be a non-negative integer defining the number of samples in each time signal;
  • sampling_window_size must be a non-negative float defining the range in which the samples are taken;
  • threshold must be a non-negative float defining the convergence threshold for FastICA;
  • threshold must be a non-negative integer defining the maximum number of iteration of FastICA.

The program writes the original signals, the mixtures and the reconstructed signals in three binary files (S.bin, X.bin and S_res.bin, respectively). Such binary files can be read and plotted using the pyutils/plot_signals.py Python scripts, which accepts an argument describing the precision of the data type, either float (default) for 32 bit or double for 64 bit.

Moreover, in the pyutils folder there's a Jupyter notebook and a fast_ica.py modules which implement the same algorithms in Python.

fast-ica's People

Contributors

nihil21 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

nguyentu1602

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.