Skip to content

Commit f2eb9cb

Browse files
committed
fixed bugs related to thresholded_oasis #90
thanks to @ehennestad
1 parent 8977c7c commit f2eb9cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deconvolution/oasis/thresholded_oasisAR1.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
% update b and g
135135
if and(optimize_g, ~g_converged);
136136
g0 = g;
137-
[solution, active_set, g, spks] = update_g(y-b, active_set);
137+
[solution, active_set, g, spks] = update_g(y-b, active_set, smin);
138138
if abs(g-g0)/g0 < 1e-4;
139139
g_converged = true;
140140
end

deconvolution/oasis/thresholded_oasisAR2.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@
134134
else
135135
% update smin
136136
[smin, solution, spks, active_set] = update_smin(y-b, g, smin,...
137-
solution, spks, active_set, sqrt(thresh));
137+
solution, spks, active_set, sqrt(thresh), max(spks));
138138
b = mean(y-solution);
139139

140140
% update b and g
141141
if and(optimize_g, ~g_converged);
142142
g0 = g;
143-
[solution, active_set, g, spks] = update_g(y-b, active_set,lam);
143+
[solution, active_set, g, spks] = update_g(y-b, g0, spks, smin);
144144
if abs(g-g0)/g0 < 1e-4;
145145
g_converged = true;
146146
end

0 commit comments

Comments
 (0)