-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.m
41 lines (38 loc) · 1.08 KB
/
setup.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
%%%%%%%%%%%%%%%%%%%%
USE_LIGHTSPEED = true;
USE_TESTS=true;
USE_MEX=true;
%%%%%%%%%%%%%%%%%%%%
MATLABDIR =[getenv('HOME') filesep 'MATLAB'];
MATLIBPATH=[getenv('HOME') filesep 'MATLAB' filesep 'matlab-library'];
%%%%%%%%%%%%%%%%%%%%
% External packages specific to this class
addpath('external');
addpath(fullfile('external','kendalltau'));
addpath(fullfile('external','arfit'));
if(USE_LIGHTSPEED)
addpath(fullfile('external','lightspeed'));
end
if(USE_MEX)
addpath(fullfile('external','mex'));
end
addpath(genpath(fullfile('external',...
'matlab-bgl')));
addpath(genpath(fullfile(MATLIBPATH,...
'lib','KPMtools')));
addpath(genpath(fullfile(MATLIBPATH,...
'lib','MATLAB-ParseArgs')));
% Necessary for GGM estimation
addpath('solvers');
addpath(fullfile('solvers','QUIC'));
% Tests
if(USE_TESTS)
addpath(genpath(fullfile(MATLIBPATH,...
'test','matlab-xunit')));
addpath('test');
if(exist(fullfile(MATLABDIR,'pggm-sims')))
addpath(genpath(fullfile(MATLABDIR,'pggm-sims')));
else
warning('simulation package unavailable. All tests will not run');
end
end