-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSim_v2_temporal.m
61 lines (37 loc) · 1.28 KB
/
Sim_v2_temporal.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
clear all
clc
close all
fid=fopen('/autofs/cluster/transcend/fahimeh/fmm/doc/txt/simulation_labels_temp_lhrh.txt');
D=textscan(fid,'%s');
all_label=D{1,1};
ind1=randperm(9);
ind2=randperm(9);
label_names=D{1,1}([ind1(1:4),ind2(1:4)+9]);
label1=D{1,1}(1:4);
all_label1=D{1,1}(1:9);
all_label2=D{1,1}(10:18);
specific_tag='templ_tempr_4sub';
%%
% POOL=parpool('local',16);
sim_dir='/autofs/cluster/transcend/fahimeh/fmm/resources/Simulations2/';
noiseLevelr=4;
% cond1
icond=1;
maxj1_cond1=9;
noisel1_cond1=1.5;
maxj2_cond1=9;
noisel2_cond1=1.5;
simulation_coh_func(sim_dir,label_names,all_label,all_label1,all_label2,label1,maxj1_cond1,noisel1_cond1,maxj2_cond1,noisel2_cond1,noiseLevelr,icond,specific_tag)
clear icond
% cond2
icond=2;
maxj1_cond2=7;
noisel1_cond2=1.5;
maxj2_cond2=8;
noisel2_cond2=1.5;
simulation_coh_func(sim_dir,label_names,all_label,all_label1,all_label2,label1,maxj1_cond2,noisel1_cond2,maxj2_cond2,noisel2_cond2,noiseLevelr,icond,specific_tag)
%% statistics
X{1} =[maxj1_cond1 noisel1_cond1;maxj2_cond1 noisel2_cond1];
X{2} =[maxj1_cond2 noisel1_cond2;maxj2_cond2 noisel2_cond2];
do_sim_stats(sim_dir,all_label1,all_label2,X,noiseLevelr,specific_tag)
cluster_coh_eval(all_label1,all_label2,X,sim_dir,noiseLevelr,specific_tag)