Mercurial > hg > smallbox
diff util/classes/dictionaryMatrices/grassmannian.m @ 169:290cca7d3469 danieleb
Added dictionary decorrelation functions and test script for ICASSP paper.
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 29 Sep 2011 09:46:52 +0100 |
parents | 1495bdfa13e9 |
children | 68fb71aa5339 |
line wrap: on
line diff
--- a/util/classes/dictionaryMatrices/grassmannian.m Tue Sep 20 15:52:33 2011 +0100 +++ b/util/classes/dictionaryMatrices/grassmannian.m Thu Sep 29 09:46:52 2011 +0100 @@ -48,7 +48,12 @@ [V_gram Sigma_gram] = svd(G); %calculate svd decomposition of gramian Sigma_new = sqrt(Sigma_gram(1:n,:)).*sign(Sigma); %calculate singular values of dictionary -A = Uinit*Sigma_new*V_gram'; %update dictionary +A = Uinit*Sigma_new*V_gram'; %update dictionary + +% param.step = 0.01; +% param.reg = 0.01; +% param.nIter = 20; +% A = rotatematrix(initA,A,'linesearchlie',param); % %% Debug visualization function % function plotcart2d(A)