diff solvers/SMALL_MP.m @ 2:257c289bf11d

(none)
author idamnjanovic
date Fri, 05 Mar 2010 12:23:57 +0000
parents 7750624e0c73
children 01cad25206d6
line wrap: on
line diff
--- 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);