-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfcv_install.m
32 lines (31 loc) · 988 Bytes
/
fcv_install.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
function fcv_install(manifold,nfft_path,mtex_path)
% FCV_INSTALL install the Fast Cros-validation toolbox
%
% Syntax:
% s = fcv_install('t') for the torus
% s = fcv_install('i') for the unit interval
% s = fcv_install('s2') for the two-dmensional sphere
% s = fcv_install('so3') for the rotation group
% s = fcv_install('s2',nfft_path,mtex_path) if your library paths vary
if nargin < 3
mtex_path = fullfile('~','repo','mtex');
end
if nargin < 2
nfft_path = fullfile('~','repo','nfft');
end
if strcmp(manifold,'t')
addpath(fullfile(nfft_path,'matlab','nfft'));
elseif strcmp(manifold,'i')
addpath(fullfile(nfft_path,'matlab','nfct'));
elseif strcmp(manifold,'s2')
addpath(fullfile(nfft_path,'matlab','nfsft'));
addpath(mtex_path);
startup_mtex
elseif strcmp(manifold,'so3')
addpath(fullfile(nfft_path,'matlab','nfsoft'));
addpath(mtex_path);
startup_mtex
end
folder = fileparts(which(mfilename('fullpath')));
addpath(genpath(fullfile(folder,manifold)))
end