diff solvers/SMALL_MP.m @ 3:01cad25206d6

(none)
author idamnjanovic
date Fri, 05 Mar 2010 12:31:22 +0000
parents 257c289bf11d
children 524cc3fff5ac
line wrap: on
line diff
--- a/solvers/SMALL_MP.m	Fri Mar 05 12:23:57 2010 +0000
+++ b/solvers/SMALL_MP.m	Fri Mar 05 12:31:22 2010 +0000
@@ -1,4 +1,4 @@
-function [A]=SMALL_MP(Dict,X, m, maxNumCoef, errorGoal1, varargin) 
+function [A]=SMALL_MP(Dict,X, m, maxNumCoef, errorGoal, varargin) 
 %%
 %=============================================
 % Sparse coding of a group of signals based on a given 
@@ -57,12 +57,12 @@
 	j=0;
     
 	currResNorm = norm(residual);
-    errorGoal=errorGoal1*currResNorm;
+    errGoal=errorGoal*currResNorm;
 	
     a = zeros(m,1);
 
 
-    while currResNorm>errorGoal & j < maxNumCoef,
+    while currResNorm>errGoal && j < maxNumCoef,
 		
         j = j+1;
         dir=Dt(residual);