In [7]:
cd /sandbox/home/Desktop
load adni_dartel_ecogpt.mat
In [12]:
R=corr(stack)
hier = niak_hierarchical_clustering(R);
order = niak_hier2order(hier);
In [13]:
hier
In [15]:
niak_visu_matrix(R(order,order))
In [36]:
y = niak_normalize_tseries(stack');
D = niak_build_distance(y);
hier = niak_hierarchical_clustering(-D);
order = niak_hier2order(hier);
In [39]:
niak_visu_matrix(1-D(order,order)/(2*sqrt(6)))
In [40]:
[sil,intra,inter] = niak_build_avg_silhouette(1-D(order,order)/(2*sqrt(6)),hier);
In [41]:
plot(sil)
In [42]:
part = niak_threshold_hierarchy(hier,struct('thresh',10));
In [44]:
niak_visu_part(part(order))
figure
niak_visu_matrix(1-D(order,order)/(2*sqrt(6)))
In [55]:
errorbar(mean(stack(part==3,:),1)',std(stack(part==9,:),[],1)')
In [59]:
x=stack(part==7,:)';
plot(repmat((1:size(x,1))',[1 size(x,2)])+0.3*rand(size(x)),x,'.')
In [60]:
4^7