Mercurial > hg > smallbox
diff util/SMALL_learn.m @ 159:23763c5fbda5 danieleb
Merge
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Aug 2011 10:43:32 +0100 |
parents | b14209313ba4 |
children | 7426503fc4d1 75b5dedcfd45 759313488e7b |
line wrap: on
line diff
--- a/util/SMALL_learn.m Wed Aug 31 10:37:57 2011 +0100 +++ b/util/SMALL_learn.m Wed Aug 31 10:43:32 2011 +0100 @@ -69,7 +69,20 @@ for i = 1: size(DL.D,2) DL.D(:,i)=DL.D(:,i)/norm(DL.D(:,i)); end + D = DL.D; + +elseif strcmpi(DL.toolbox,'MMbox') + + DL = wrapper_mm_DL(Problem, DL); + + % we need to make sure that columns are normalised to + % unit lenght. + + for i = 1: size(DL.D,2) + DL.D(:,i)=DL.D(:,i)/norm(DL.D(:,i)); + end D = DL.D; + % To introduce new dictionary learning technique put the files in % your Matlab path. Next, unique name <TolboxID> for your toolbox needs % to be defined and also prefferd API for toolbox functions <Preffered_API>