0
|
1 function [rDiff_paths] = set_rdiff_paths()
|
|
2 % [difftest_paths] = set_rdiff_paths()
|
|
3
|
|
4 %Initialize rDiff_paths
|
|
5 rDiff_paths='';
|
|
6
|
|
7 %get the path to the source files
|
|
8 BASEPATH_SRC=getenv('RDIFF_SRC_PATH');
|
|
9
|
|
10 %Determine interpreter
|
|
11 if size(ver('Octave'),1)
|
|
12 INTERPR = 1;
|
|
13 else
|
|
14 INTERPR = 0;
|
|
15 end
|
|
16
|
|
17
|
|
18 %Add paths to rDiff_paths
|
|
19 if INTERPR
|
|
20 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/octave/']];
|
|
21 end
|
|
22 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/../mex/']];
|
|
23 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/tests/']];
|
|
24 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/tools/']];
|
|
25 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/tools/read_utils/']];
|
|
26 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/variance/']];
|
|
27 rDiff_paths=[rDiff_paths ':' genpath([BASEPATH_SRC '/locfit/'])];
|
|
28 addpath(rDiff_paths);
|
|
29
|