Skip to content

Commit fca785f

Browse files
committed
resolve warning
1 parent 7dd551c commit fca785f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lectures/muth_kalman.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,11 @@ simulate it
236236
# Create grand state-space for y_t, a_t as observed vars -- Use
237237
# stacking trick above
238238
Af = np.array([[ 1, 0, 0],
239-
[K1, 1 - K1, K1 * σ_y],
240-
[ 0, 0, 0]],dtype=object)
239+
[K1[0][0], 1 - K1[0][0], K1[0][0] * σ_y],
240+
[ 0, 0, 0]])
241241
Cf = np.array([[σ_x, 0],
242-
[ 0, K1 * σ_y],
243-
[ 0, 1]],
244-
dtype=object)
242+
[ 0, K1[0][0] * σ_y],
243+
[ 0, 1]])
245244
Gf = np.array([[1, 0, σ_y],
246245
[1, -1, σ_y]])
247246

0 commit comments

Comments
 (0)