comparison solvers/my_dummy_solver.m @ 128:8e660fd14774 ivand_dev

Feature 186
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 13 Jun 2011 14:55:45 +0100
parents 138f7f0fdcdf
children
comparison
equal deleted inserted replaced
126:db5a7fe1a404 128:8e660fd14774
1 function [A]=my_dummy_solver(Dict,X, m, maxNumCoef, errorGoal, varargin)
2 %% Template function that can be used for solver implementation
3 %
4 % Sparse coding of a group of signals based on a given
5 % dictionary and specified number of atoms to use.
6 %
7 % input arguments: Dict - the dictionary
8 % X - the signals to represent
9 % m - number of atoms in Dictionary
10 % errorGoal - the maximal allowed representation
11 % error for each signal.
12 %
13 % optional: if Dict is function handle then Transpose Dictionary
14 % handle needs to be specified.
15 %
16 % output arguments: A - sparse coefficient matrix.
17
18 %% Change copyright notice as appropriate:
19 % Centre for Digital Music, Queen Mary, University of London.
20 % This file copyright 2009 Ivan Damnjanovic.
21 %
22 % This program is free software; you can redistribute it and/or
23 % modify it under the terms of the GNU General Public License as
24 % published by the Free Software Foundation; either version 2 of the
25 % License, or (at your option) any later version. See the file
26 % COPYING included with this distribution for more information.
27 %%