Mercurial > hg > smallbox
comparison DL/RLS-DLA/SMALL_rlsdla.m @ 65:55faa9b5d1ac
(none)
author | idamnjanovic |
---|---|
date | Wed, 16 Mar 2011 13:41:02 +0000 |
parents | 6416fc12f2b8 |
children | a02503d91c8d |
comparison
equal
deleted
inserted
replaced
64:8288a23f041f | 65:55faa9b5d1ac |
---|---|
105 D = normcols(D); | 105 D = normcols(D); |
106 | 106 |
107 % Training data | 107 % Training data |
108 | 108 |
109 data=X; | 109 data=X; |
110 | 110 cnt=size(data,2); |
111 % | 111 % |
112 | 112 |
113 C=(100000*thresh)*eye(dictsize); | 113 C=(100000*thresh)*eye(dictsize); |
114 w=zeros(dictsize,1); | 114 w=zeros(dictsize,1); |
115 u=zeros(dictsize,1); | 115 u=zeros(dictsize,1); |
116 | 116 |
117 | 117 |
118 for i = 1:size(data,2) | 118 for i = 1:cnt |
119 | 119 |
120 if (codemode == CODE_SPARSITY) | 120 if (codemode == CODE_SPARSITY) |
121 w = ompmex(D,data(:,i),[],[],thresh,1,-1,0); | 121 w = ompmex(D,data(:,i),[],[],thresh,1,-1,0); |
122 else | 122 else |
123 w = omp2mex(D,data(:,i),[],[],[],thresh,0,-1,maxatoms,0); | 123 w = omp2mex(D,data(:,i),[],[],[],thresh,0,-1,maxatoms,0); |