Mercurial > hg > smallbox
changeset 180:28b20fd46ba7 danieleb
debugged
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Nov 2011 13:01:55 +0000 |
parents | 989b7d78e1c8 |
children | 0dc98f1c60bb |
files | util/classes/@dictionary/cumcoherence.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/util/classes/@dictionary/cumcoherence.m Thu Nov 17 12:55:36 2011 +0000 +++ b/util/classes/@dictionary/cumcoherence.m Thu Nov 17 13:01:55 2011 +0000 @@ -8,7 +8,7 @@ % % OUTPUT % mu: p-cumulative coherence -if ~exist('type','var') || isempty(p), p = 1; end +if ~exist('p','var') || isempty(p), p = 1; end obj = normalize(obj); [M N] = size(obj.phi); @@ -22,9 +22,9 @@ c = sort(c,'descend'); c = c(1:m,:); if m==1 - mu(m) = max(c^(1/p)); + mu(m) = max(c.^(1/p)); else - mu(m) = max(sum(c)^(1/p)); + mu(m) = max(sum(c).^(1/p)); end end end