Skip to content

Commit 6d54b51

Browse files
authored
Update kalman_filter_sLORETA.m
Revert a merge
1 parent b2581e3 commit 6d54b51

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed
+4-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
function [P_store,z_inverse] = kalman_filter_sLORETA(m,P,A,Q,L,R, timeSteps ,number_of_frames, smoothing, q_given)
1+
function [P_store,z_inverse] = kalman_filter_sLORETA(m,P,A,Q,L,R, timeSteps ,number_of_frames, smoothing)
22
P_store = cell(0);
33
z_inverse = cell(0);
4-
h = zef_waitbar(0, 'Filtering');
5-
if not(q_given)
6-
q_values = Q;
7-
end
8-
4+
h = zef_waitbar(0,1, 'Filtering');
95
for f_ind = 1: number_of_frames
10-
zef_waitbar(f_ind/number_of_frames,h,...
6+
zef_waitbar(f_ind,number_of_frames,h,...
117
['Filtering ' int2str(f_ind) ' of ' int2str(number_of_frames) '.']);
128
f = timeSteps{f_ind};
13-
if not(q_given)
14-
Q = diag(q_values(:,f_ind));
15-
end
169
% Prediction
1710
[m,P] = kf_predict(m, P, A, Q);
1811
% Update
@@ -23,4 +16,4 @@
2316
end
2417
end
2518
close(h);
26-
end
19+
end

0 commit comments

Comments
 (0)