11 Apr 2011

fastICA in AS3

Blog No Comments

I’m not going to spend a lot of time explaining what fastICA is, or what Independent Component Analysis is in general, but if you need it in Actionscript and you’ve been looking for it, here it is.  I only vaguely understand how it works (for now!), but math is math and code is code, and once I had my Matrix Math package set up, it was just a matter of effort and optimization.

It’s ported it over from the MDP package in Python. It’s not the full implementation, just as much as I needed to make the Pulse project work, so at some point I’m going to finish porting over the rest of the internal methods. It’s mad slow, yo! My next goal is to offload the heavier calculations to PixelBender, like I did with the Lomb-Scargle code the Pulse project used, but until then, you’ll need to only run it against reasonably-small data sets if you want it to run with anything approaching “speed”.

While I work on getting a code repository set up, use the contact form or leave a message in the comments if you want me to send it to you, I want to share!  Click through, or on the image above, to launch a demo.

This movie requires Flash Player 9

No Responses to “fastICA in AS3”

Leave a Reply