# HG changeset patch # User idamnjanovic # Date 1267791837 0 # Node ID 257c289bf11daadfdf8c258477295be1433d5d3c # Parent 7750624e0c73c856ab7cfbae6160711e965135b7 diff -r 7750624e0c73 -r 257c289bf11d solvers/SMALL_MP.m --- a/solvers/SMALL_MP.m Thu Nov 05 16:36:01 2009 +0000 +++ b/solvers/SMALL_MP.m Fri Mar 05 12:23:57 2010 +0000 @@ -1,4 +1,4 @@ -function [A]=SMALL_MP(Dict,X, m, maxNumCoef, errorGoal, varargin) +function [A]=SMALL_MP(Dict,X, m, maxNumCoef, errorGoal1, varargin) %% %============================================= % Sparse coding of a group of signals based on a given @@ -45,7 +45,7 @@ %% [n,P]=size(X); -E2 = errorGoal^2; +%E2 = errorGoal^2; A = sparse(m,size(X,2)); @@ -57,7 +57,7 @@ j=0; currResNorm = norm(residual); - errorGoal=errorGoal*currResNorm; + errorGoal=errorGoal1*currResNorm; a = zeros(m,1);