bug fix for init variables to be defined only with occbin PKF

silicon
Marco Ratto 2022-12-02 11:11:31 +01:00
parent 50aa20c742
commit 7132cb593e
1 changed files with 4 additions and 4 deletions

View File

@ -145,10 +145,10 @@ while notsteady && t<=last
if ~(isqvec)
QQ = R*Q*transpose(R); % Variance of R times the vector of structural innovations.
end
end
if t==1
Pinit = P1(:,:,1);
ainit = a1(:,1);
if t==1
Pinit = P1(:,:,1);
ainit = a1(:,1);
end
end
s = t-start+1;
d_index = data_index{t};