@@ -331,8 +331,8 @@ function simulate(
331
331
332
332
# The first state of the simulation is the update of a_0
333
333
alpha[1 , :] .= initial_state .+ sys. R * chol_Q. L * standard_η[1 , :]
334
- y[1 ] = dot (sys. Z, initial_state ) + sys. d + chol_H * standard_ε[1 ]
335
- alpha[2 , :] = sys. T * initial_state + sys. c + sys. R * chol_Q. L * standard_η[2 , :]
334
+ y[1 ] = dot (sys. Z, alpha[ 1 , :] ) + sys. d + chol_H * standard_ε[1 ]
335
+ alpha[2 , :] = sys. T * alpha[ 1 , :] + sys. c + sys. R * chol_Q. L * standard_η[2 , :]
336
336
# Simulate scenarios
337
337
for t in 2 : n
338
338
y[t] = dot (sys. Z, alpha[t, :]) + sys. d + chol_H * standard_ε[t]
@@ -363,8 +363,8 @@ function simulate(
363
363
364
364
# The first state of the simulation is the update of a_0
365
365
alpha[1 , :] .= initial_state .+ sys. R * chol_Q. L * standard_η[1 , :]
366
- y[1 , :] = sys. Z * initial_state + sys. d + chol_H. L * standard_ε[1 , :]
367
- alpha[2 , :] = sys. T * initial_state + sys. c + sys. R * chol_Q. L * standard_η[2 , :]
366
+ y[1 , :] = sys. Z * alpha[ 1 , :] + sys. d + chol_H. L * standard_ε[1 , :]
367
+ alpha[2 , :] = sys. T * alpha[ 1 , :] + sys. c + sys. R * chol_Q. L * standard_η[2 , :]
368
368
# Simulate scenarios
369
369
for t in 2 : n
370
370
y[t, :] = sys. Z * alpha[t, :] + sys. d + chol_H. L * standard_ε[t, :]
0 commit comments