-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_parameter_estimation.m
146 lines (108 loc) · 3.84 KB
/
start_parameter_estimation.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
%cd /home/CAM/veralicona/shichao/
mfilepath=pwd
addpath(fullfile(mfilepath, './MULAN'))
addpath (fullfile(mfilepath, './MULAN/Calculation'))
addpath (fullfile(mfilepath, './MULAN/ClusterComputation'))
addpath (fullfile(mfilepath, './MULAN/Evaluation'))
addpath (fullfile(mfilepath, './MULAN/Examples'))
addpath (fullfile(mfilepath, './MULAN/Examples/data'))
addpath (fullfile(mfilepath, './MULAN/Examples/Results'))
addpath (fullfile(mfilepath, './MULAN/GenerateData'))
addpath (fullfile(mfilepath, './MULAN/Interface'))
addpath (fullfile(mfilepath, './GENIE'))
addpath (fullfile(mfilepath, './GENIE/RT'))
addpath (fullfile(mfilepath, './TIGRESS'))
addpath (fullfile(mfilepath, './TIGRESS/lars'))
addpath (fullfile(mfilepath, './ScaleFree'))
addpath (fullfile(mfilepath, './Helper-scripts'))
cd ./MULAN
mex ../GENIE/RT/rtree-c/rtenslearn_c.c;
ext = mexext;
movefile(fullfile(pwd, ['rtenslearn_c' '.' ext]), fullfile('../GENIE/RT/', ...
['rtenslearn_c' '.' ext]));
calParams.defwindow='200';
calParams.defoverlap='0';
calParams.defmodelorders='5';
calParams.minfreq='1';
calParams.maxfreq='30';
calParams.stepfreq='0.5';
calParams.defbins='16';
calParams.defMaxDelay='5';
calParams.genieMethod = '1';
calParams.genieNbTrees = '500';
calParams.genieK = '0';
calParams.tigressR = '500';
calParams.tigressAlpha = '0.3';
calParams.tigressL = '3';
calParams.tigressLarsAlgo = '0';
calParams.tigressScoreMethod = '1';
save('nmmParams1.mat','calParams');
calParams.genieMethod = '1';
calParams.genieNbTrees = '500';
calParams.genieK = '-1';
calParams.tigressR = '500';
calParams.tigressAlpha = '0.3';
calParams.tigressL = '3';
calParams.tigressLarsAlgo = '0';
calParams.tigressScoreMethod = '1';
save('nmmParams2.mat','calParams');
calParams.genieMethod = '1';
calParams.genieNbTrees = '500';
calParams.genieK = '3';
calParams.tigressR = '500';
calParams.tigressAlpha = '0.3';
calParams.tigressL = '3';
calParams.tigressLarsAlgo = '0';
calParams.tigressScoreMethod = '0';
save('nmmParams3.mat','calParams');
calParams.genieMethod = '0';
calParams.genieNbTrees = '500';
calParams.genieK = '0';
calParams.tigressR = '500';
calParams.tigressAlpha = '0.3';
calParams.tigressL = '3';
calParams.tigressLarsAlgo = '0';
calParams.tigressScoreMethod = '0';
save('nmmParams4.mat','calParams');
calParams.genieMethod = '0';
calParams.genieNbTrees = '500';
calParams.genieK = '-1';
calParams.tigressR = '2000';
calParams.tigressAlpha = '0.3';
calParams.tigressL = '3';
calParams.tigressLarsAlgo = '0';
calParams.tigressScoreMethod = '1';
save('nmmParams5.mat','calParams');
calParams.genieMethod = '0';
calParams.genieNbTrees = '500';
calParams.genieK = '3';
calParams.tigressR = '2000';
calParams.tigressAlpha = '0.3';
calParams.tigressL = '3';
calParams.tigressLarsAlgo = '0';
calParams.tigressScoreMethod = '1';
save('nmmParams6.mat','calParams');
parfor i = 1:1
nc = 50;
is = 1;
T = 200;
prenom = 'sim4';
generateScaleFree(nc, i);
generateDirectedRandom(nc, 0.05, i);
sfStrct = ['GenerateData/structureN' int2str(nc) 'scaleFree' ...
int2str(i)];
rStrct = ['GenerateData/structureN' int2str(nc) 'directedRandom' ...
int2str(i)];
sFolder = ['scaleFree' int2str(i) '_params'];
rFolder = ['directedRandom' int2str(i) '_params'];
mln_generate_fMRI_multi(is, nc, sfStrct, sFolder, ...
prenom, 1, T, 6);
mln_generate_fMRI_multi(is, nc, rStrct, rFolder, ...
prenom, 1, T, 6);
for j = 1:6
mln_CalEvaN([rFolder int2str(j)], 'sim4', rStrct, ['nmmParams' int2str(j)], ...
'50', '1', '200', '1', 'fMRI');
mln_CalEvaN([sFolder int2str(j)], 'sim4', sfStrct, ['nmmParams' int2str(j)], ...
'50', '1', '200', '1', 'fMRI');
end
end