Skip to content
Snippets Groups Projects
Commit c02616b0 authored by sebastien's avatar sebastien
Browse files

v4.0: merging r2048 changeset from trunk

git-svn-id: https://www.dynare.org/svn/dynare/branches/4.0@2049 ac1d8469-bf42-47a9-8791-bf33cf982152
parent ffd6400c
Branches
Tags
No related merge requests found
......@@ -113,7 +113,7 @@ while newRank & t < smpl
% presample options can be used to ignore initial time points
lik(t) = lik(t) + log(Fstar) + v(i)*v(i)/Fstar;
a = a + Kstar*v(i)/Fstar;
Pstar = Pstar - Kstar*Kstar'/Fstar;
Pstar = Pstar - Kstar*(Kstar'/Fstar);
else
%disp(['zero F term in DKF for observed ',int2str(i),' ',num2str(Fstar)])
end
......@@ -147,7 +147,7 @@ while notsteady & t < smpl
if Fi > crit
Ki = Pstar*Zi';
a = a + Ki*v(i)/Fi;
Pstar = Pstar - Ki*Ki'/Fi;
Pstar = Pstar - Ki*(Ki'/Fi);
lik(t) = lik(t) + log(Fi) + v(i)*v(i)/Fi;
else
%disp(['zero F term for observed ',int2str(i),' ',num2str(Fi)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment