Mercurial > hg > smallbox
comparison DL/two-step DL/dico_decorr_symetric.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 | 8324c7ea6602 |
children | fd0b5d36f6ad |
comparison
equal
deleted
inserted
replaced
168:ff866a412be5 | 169:290cca7d3469 |
---|---|
24 % end | 24 % end |
25 | 25 |
26 % several decorrelation iterations might be needed to reach global | 26 % several decorrelation iterations might be needed to reach global |
27 % coherence mu. niter can be adjusted to needs. | 27 % coherence mu. niter can be adjusted to needs. |
28 niter = 1; | 28 niter = 1; |
29 while niter < 5 && ... | 29 while max(max(abs(dico'*dico -eye(length(dico))))) > mu + 0.01 |
30 max(max(abs(dico'*dico -eye(length(dico))))) > mu + eps | |
31 % find pairs of high correlation atoms | 30 % find pairs of high correlation atoms |
32 colors = dico_color(dico, mu); | 31 colors = dico_color(dico, mu); |
33 | 32 |
34 % iterate on all pairs | 33 % iterate on all pairs |
35 nbColors = max(colors); | 34 nbColors = max(colors); |