Skip to content

Commit 1a39d5a

Browse files
Merge pull request #83 from LAMPSPUC/fix_ξ_simulation
fix ξ when seasonal_innovation_simulation is not 0
2 parents f1e22d4 + c93ef72 commit 1a39d5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StateSpaceLearning"
22
uuid = "971c4b7c-2c4e-4bac-8525-e842df3cde7b"
33
authors = ["andreramosfc <[email protected]>"]
4-
version = "2.0.11"
4+
version = "2.0.12"
55

66
[deps]
77
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"

src/models/structural_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ function simulate_states(
14321432
if model.stochastic_level && !punctual
14331433
if seasonal_innovation_simulation != 0
14341434
ξ_values = vcat(
1435-
zeros(start_idx - 1), model.output.components["ξ"]["Coefs"], zeros(1)
1435+
zeros(start_idx - 1), model.output.components["ξ"]["Coefs"], zeros(model.ξ_threshold)
14361436
)
14371437
else
14381438
if !isempty(model.output.components["ξ"]["Coefs"])

0 commit comments

Comments
 (0)