Mercurial > hg > smallbox
view DL/Majorization Minimization DL/ExactDicoRecovery/dict_update_MOD_cn.m @ 195:d50f5bdbe14c luisf_dev
- Added SMALL_DL_test: simple DL showcase
- Added dico_decorr_symmetric: improved version of INK-SVD decorrelation step
- Debugged SMALL_learn, SMALLBoxInit and SMALL_two_step_DL
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Wed, 14 Mar 2012 14:42:52 +0000 |
parents | b14209313ba4 |
children |
line wrap: on
line source
function [Phiout,unhatnz] = dict_update_MOD_cn(x,unhat,cvset) %% Method of Optimized Direction (MOD) Dictionary Update followed by the %% constraint on the column norms %% %% eps = .01; K = x*unhat'*inv(unhat*unhat'+eps*eye(size(unhat,1))); if cvset == 1, K = K*diag(min(sum(K.^2).^(-.5),1)); % Projecting on the convex constraint set else K = K*diag(sum(K.^2).^(-.5)); % Projecting on the Unit-Norm constraint set end %% depleted atoms cancellation %%% [Y,I] = sort(sum(K.^2),'descend'); RR = sum(Y>=.01); Phiout = K(:,I(1:RR)); unhatnz = unhat(I(1:RR),:); end