Mercurial > hg > smallbox
comparison DL/Majorization Minimization DL/wrapper_mm_solver.m @ 178:4ea4badb2266 danieleb
added ramirez dl (to be completed) and MOCOD dictionary update
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Nov 2011 11:22:17 +0000 |
parents | f42aa8bcb82f |
children | 0c7c20f3246c |
comparison
equal
deleted
inserted
replaced
177:714fa7b8c1ad | 178:4ea4badb2266 |
---|---|
31 % to - 1/(step size) . It is larger than spectral norm of dictionary A | 31 % to - 1/(step size) . It is larger than spectral norm of dictionary A |
32 | 32 |
33 if isfield(param, 'to') | 33 if isfield(param, 'to') |
34 to = param.to; | 34 to = param.to; |
35 else | 35 else |
36 to = .1+svds(A,1); | 36 to = .1+(svds(A,1))^2; |
37 end | 37 end |
38 | 38 |
39 % lambda - Lagrangian multiplier. (regulates shrinkage) | 39 % lambda - Lagrangian multiplier. (regulates shrinkage) |
40 | 40 |
41 if isfield(param, 'lambda') | 41 if isfield(param, 'lambda') |
63 % Debiasing. 0 = No, 1 = Yes | 63 % Debiasing. 0 = No, 1 = Yes |
64 | 64 |
65 if isfield(param, 'map') | 65 if isfield(param, 'map') |
66 map = param.map; | 66 map = param.map; |
67 else | 67 else |
68 map = 1; | 68 map = 0; |
69 end | 69 end |
70 | 70 |
71 | 71 |
72 [X, cost] = mm1(A,b,initX,to,lambda,maxIT,epsilon,map); | 72 [X, cost] = mm1(A,b,initX,to,lambda,maxIT,epsilon,map); |
73 cost | 73 cost |