ivan@128: function [A]=my_dummy_solver(Dict,X, m, maxNumCoef, errorGoal, varargin) ivan@128: %% Template function that can be used for solver implementation ivan@128: % ivan@128: % Sparse coding of a group of signals based on a given ivan@128: % dictionary and specified number of atoms to use. ivan@128: % ivan@128: % input arguments: Dict - the dictionary ivan@128: % X - the signals to represent ivan@128: % m - number of atoms in Dictionary ivan@128: % errorGoal - the maximal allowed representation ivan@128: % error for each signal. ivan@128: % ivan@128: % optional: if Dict is function handle then Transpose Dictionary ivan@128: % handle needs to be specified. ivan@128: % ivan@128: % output arguments: A - sparse coefficient matrix. ivan@128: ivan@128: %% Change copyright notice as appropriate: ivan@128: % Centre for Digital Music, Queen Mary, University of London. ivan@128: % This file copyright 2009 Ivan Damnjanovic. ivan@128: % ivan@128: % This program is free software; you can redistribute it and/or ivan@128: % modify it under the terms of the GNU General Public License as ivan@128: % published by the Free Software Foundation; either version 2 of the ivan@128: % License, or (at your option) any later version. See the file ivan@128: % COPYING included with this distribution for more information. ivan@128: %%