comparison util/SMALL_init_DL.m @ 152:485747bf39e0 ivand_dev

Two step dictonary learning - Integration of the code for dictionary update and dictionary decorrelation from Boris Mailhe
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Thu, 28 Jul 2011 15:49:32 +0100
parents 8e660fd14774
children
comparison
equal deleted inserted replaced
149:fec205ec6ef6 152:485747bf39e0
1 function DL = SMALL_init_DL(varargin) 1 function DL = SMALL_init_DL(toolbox, name, param, profile)
2 %% Function initialise SMALL structure for Dictionary Learning. 2 %% Function initialise SMALL structure for Dictionary Learning.
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 DL.toolbox=[]; 20 if ~ exist( 'toolbox', 'var' ) || isempty(toolbox)
21 DL.name=[]; 21 DL.toolbox = [];
22 DL.param=[]; 22 else
23 DL.toolbox = toolbox;
24 end
25 if ~ exist( 'name', 'var' ) || isempty(name)
26 DL.name = [];
27 else
28 DL.name = name;
29 end
30 if ~ exist( 'param', 'var' ) || isempty(param)
31 DL.param = [];
32 else
33 DL.param = param;
34 end
35 if ~ exist( 'profile', 'var' ) || isempty(profile)
36 DL.profile = 1;
37 else
38 DL.profile = profile;
39 end
40
23 DL.D=[]; 41 DL.D=[];
24 DL.time=[]; 42 DL.time=[];
25 end 43 end