%The following packages have to be installed:

%the SurfStat package (http://www.math.mcgill.ca/keith/surfstat) and 
%its extension (http://www.stat.wisc.edu/~mchung/research/amygdala/)
%and the FastICA package 


%For computing the spherical harmonics expansion

%load the images

load('imagenes.mat')

calculatingFourier %This step lasts some minuts. It can be jumped if we load
% directly the results: the coefficents in the base are in Fl15.mat

%%%%%%%%%%%%%%%%%

%FPCA

pcahipocampus %computing FPCA and graphics (some results inserted)

clasiffpca % computing classification for FPCA (LOU and nested LOU for each problem) (some results inserted)

ldfpca %computing the linear discriminant function with FPCA and graphics 

%%%%%%%%%%%%%%%%%

%FICA

clasiffica %computing classification for FICA (LOU and nested LOU for each problem) (some results inserted)

plotfica %plots the effect of the independent components, analogously to Fig. 1 in supplemental material

ldfica %computing the linear discriminant function with FICA and graphics (some results inserted)

% SVM (Gerardin et al. 2009) (some results inserted)

svmfourier %computing classification for SVM (LOU and nested LOU for each problem) (some results inserted)

%SDA
%sparseLDA package which is available from http://www2.imm.dtu.dk/~lhc/
%should be installed

sldafourier %computing classification for SDA (LOU and nested LOU for each problem) (some results inserted)

%Chung

chungGMLM % reproducing Chung et al. 2010




