-
Notifications
You must be signed in to change notification settings - Fork 6
/
ExperimentD2_EGCandGC.m
41 lines (29 loc) · 1.17 KB
/
ExperimentD2_EGCandGC.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
% for comparison between MVGC, GCCA, GCT, eGC (and basic GC coming with
% eGC)
% add path to code from Schiatti, et al. 2015 paper
% "Extended Granger causality: a new tool to identify the structure of
% physiological networks"
% toolbox available at www.lucafaes.net/eGC.html
current_root = fileparts(mfilename('fullpath')); % directory containing this file
addpath(fullfile(current_root,'EGC'));
addpath(fullfile(current_root,'EGC','functions'));
load('UsualParams.mat')
expnum = 'D2_EGC';
mats = smallMats;
ntrials = 1;
reps = 50;
p = 5; % model order: tried 2-7
eFlag = 1; % do extended version of GC
networkInferenceFn = @(data) DemoEGC(data, p, eFlag);
numDiagnostics = 0;
BaseExperiment(expnum, mats, Kvals, randwfn, randicfn, preprocfn, ...
deltat, endtime, ntrials, reps, tsplits, freq, networkInferenceFn, ...
numDiagnostics)
%%%%%%%%%%%%%%%%%%%
expnum = 'D2_GC';
eFlag = 0; % do non-extended version of GC
networkInferenceFn = @(data) DemoEGC(data, p, eFlag);
BaseExperiment(expnum, mats, Kvals, randwfn, randicfn, preprocfn, ...
deltat, endtime, ntrials, reps, tsplits, freq, networkInferenceFn, ...
numDiagnostics)
exit;