Code for computing projections of data which maximize correlation coefficient between trials.  http://www.frontiersin.org/Human_Neuroscience/10.3389/fnhum.2012.00112/abstract