view util/SMALL_init_DL.m @ 218:c38d965b5a1d luisf_dev

Moved CVX_add_const_Audio_declipping.m from solvers to the examples/AudioInpainting folder.
author Aris Gretsistas <aris.gretsistas@eecs.qmul.ac.uk>
date Thu, 22 Mar 2012 15:37:45 +0000
parents 485747bf39e0
children
line wrap: on
line source
function DL = SMALL_init_DL(toolbox, name, param, profile)
%%   Function initialise SMALL structure for Dictionary Learning.
%   Optional input variables:
%       toolbox - name of Dictionary Learning toolbox you want to use
%       name    - name of the algorithm from above toolbox
%       param   - parameters you want to set

%
%   Centre for Digital Music, Queen Mary, University of London.
%   This file copyright 2010 Ivan Damnjanovic.
%
%   This program is free software; you can redistribute it and/or
%   modify it under the terms of the GNU General Public License as
%   published by the Free Software Foundation; either version 2 of the
%   License, or (at your option) any later version.  See the file
%   COPYING included with this distribution for more information.
%
%%

if ~ exist( 'toolbox', 'var' ) || isempty(toolbox) 
    DL.toolbox = []; 
else
    DL.toolbox = toolbox;
end
if ~ exist( 'name', 'var' ) || isempty(name) 
    DL.name = [];
else
    DL.name = name;
end
if ~ exist( 'param', 'var' ) || isempty(param) 
    DL.param = [];
else
    DL.param = param;
end
if ~ exist( 'profile', 'var' ) || isempty(profile) 
    DL.profile = 1;
else
    DL.profile = profile;
end

DL.D=[];
DL.time=[];
end