Skip to content

Commit db84cfa

Browse files
committed
Fix Kalman exercise prediction timing
1 parent 8f0e37c commit db84cfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lectures/kalman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ e1 = np.empty(T-1)
785785
e2 = np.empty(T-1)
786786
787787
for t in range(1, T):
788-
kn.update(y[:,t])
788+
kn.update(y[:, t-1])
789789
diff1 = x[:, t] - kn.x_hat.flatten()
790790
diff2 = x[:, t] - A @ x[:, t-1]
791791
e1[t-1] = diff1 @ diff1

0 commit comments

Comments
 (0)