annotate util/SMALL_init_DL.m @ 183:0d7a81655ef2 danieleb

removed cumulative coherence calculation
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Fri, 27 Jan 2012 13:15:11 +0000
parents 485747bf39e0
children
rev   line source
ivan@152 1 function DL = SMALL_init_DL(toolbox, name, param, profile)
ivan@128 2 %% Function initialise SMALL structure for Dictionary Learning.
ivan@128 3 % Optional input variables:
ivan@128 4 % toolbox - name of Dictionary Learning toolbox you want to use
ivan@128 5 % name - name of the algorithm from above toolbox
ivan@128 6 % param - parameters you want to set
ivan@128 7
idamnjanovic@24 8 %
idamnjanovic@24 9 % Centre for Digital Music, Queen Mary, University of London.
idamnjanovic@24 10 % This file copyright 2010 Ivan Damnjanovic.
idamnjanovic@24 11 %
idamnjanovic@24 12 % This program is free software; you can redistribute it and/or
idamnjanovic@24 13 % modify it under the terms of the GNU General Public License as
idamnjanovic@24 14 % published by the Free Software Foundation; either version 2 of the
idamnjanovic@24 15 % License, or (at your option) any later version. See the file
idamnjanovic@24 16 % COPYING included with this distribution for more information.
idamnjanovic@24 17 %
idamnjanovic@24 18 %%
idamnjanovic@24 19
ivan@152 20 if ~ exist( 'toolbox', 'var' ) || isempty(toolbox)
ivan@152 21 DL.toolbox = [];
ivan@152 22 else
ivan@152 23 DL.toolbox = toolbox;
ivan@152 24 end
ivan@152 25 if ~ exist( 'name', 'var' ) || isempty(name)
ivan@152 26 DL.name = [];
ivan@152 27 else
ivan@152 28 DL.name = name;
ivan@152 29 end
ivan@152 30 if ~ exist( 'param', 'var' ) || isempty(param)
ivan@152 31 DL.param = [];
ivan@152 32 else
ivan@152 33 DL.param = param;
ivan@152 34 end
ivan@152 35 if ~ exist( 'profile', 'var' ) || isempty(profile)
ivan@152 36 DL.profile = 1;
ivan@152 37 else
ivan@152 38 DL.profile = profile;
ivan@152 39 end
ivan@152 40
idamnjanovic@24 41 DL.D=[];
idamnjanovic@24 42 DL.time=[];
idamnjanovic@24 43 end