Skip to content
Snippets Groups Projects
Commit ae72105b authored by ferhat's avatar ferhat
Browse files

Speeds up the Kalman smoother

parent 4e789452
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