comparison util/SMALL_init_solver.m @ 140:31d2864dfdd4 ivand_dev

Audio Impainting additional constraints with cvx added
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 17:27:05 +0100
parents 8e660fd14774
children
comparison
equal deleted inserted replaced
139:4bd6856a7128 140:31d2864dfdd4
1 function solver = SMALL_init_solver(varargin) 1 function solver = SMALL_init_solver(toolbox, name, param, profile)
2 %% Function initialise SMALL structure for sparse representation. 2 %% Function initialise SMALL structure for sparse representation.
3 % Optional input variables: 3 % Optional input variables:
4 % toolbox - name of Dictionary Learning toolbox you want to use 4 % toolbox - name of Dictionary Learning toolbox you want to use
5 % name - name of the algorithm from above toolbox 5 % name - name of the algorithm from above toolbox
6 % param - parameters you want to set 6 % param - parameters you want to set
15 % License, or (at your option) any later version. See the file 15 % License, or (at your option) any later version. See the file
16 % COPYING included with this distribution for more information. 16 % COPYING included with this distribution for more information.
17 % 17 %
18 %% 18 %%
19 19
20 solver.toolbox=[]; 20 if ~ exist( 'toolbox', 'var' ) || isempty(toolbox)
21 solver.name=[]; 21 solver.toolbox = [];
22 solver.param=[]; 22 else
23 solver.solution=[]; 23 solver.toolbox = toolbox;
24 solver.reconstructed=[]; 24 end
25 solver.time=[]; 25 if ~ exist( 'name', 'var' ) || isempty(name)
26 solver.name = [];
27 else
28 solver.name = name;
29 end
30 if ~ exist( 'param', 'var' ) || isempty(param)
31 solver.param = [];
32 else
33 solver.param = param;
34 end
35 if ~ exist( 'profile', 'var' ) || isempty(profile)
36 solver.profile = 1;
37 else
38 solver.profile = profile;
39 end
40 solver.add_constraints = 0;
41 solver.solution = [];
42 solver.reconstructed = [];
43 solver.time = [];
26 44
27 end 45 end