@@ -233,13 +233,16 @@ With this tool at our disposal, let’s form the composite system and
|
233 | 233 | simulate it |
234 | 234 | |
235 | 235 | ```{code-cell} python3 |
| 236 | +# Extract integer K1 from the nested array |
| 237 | +K1 = K1[0][0] |
| 238 | + |
236 | 239 | # Create grand state-space for y_t, a_t as observed vars -- Use |
237 | 240 | # stacking trick above |
238 | 241 | Af = np.array([[ 1, 0, 0], |
239 | | - [K1[0][0], 1 - K1[0][0], K1[0][0] * σ_y], |
| 242 | + [K1, 1 - K1, K1 * σ_y], |
240 | 243 | [ 0, 0, 0]]) |
241 | 244 | Cf = np.array([[σ_x, 0], |
242 | | - [ 0, K1[0][0] * σ_y], |
| 245 | + [ 0, K1 * σ_y], |
243 | 246 | [ 0, 1]]) |
244 | 247 | Gf = np.array([[1, 0, σ_y], |
245 | 248 | [1, -1, σ_y]]) |
|