Skip to content
Snippets Groups Projects
Commit 7438dae0 authored by ferhat's avatar ferhat Committed by Sébastien Villemot
Browse files

Speeds up the Kalman smoother

(cherry picked from commit ae72105b)
parent 714d2f38
Branches
Tags
No related merge requests found
......@@ -177,7 +177,7 @@ while notsteady && t<smpl
atilde(:,t) = a(:,t) + PZI*v(di,t);
K(:,di,t) = T*PZI;
L(:,:,t) = T-K(:,di,t)*ZZ;
P(:,:,t+1) = T*P(:,:,t)*T'-T*P(:,:,t)*ZZ'*K(:,di,t)' + QQ;
P(:,:,t+1) = T*P(:,:,t)*L(:,:,t)' + QQ;
end
a(:,t+1) = T*atilde(:,t);
Pf = P(:,:,t);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment