Skip to content

Commit d1c7d6b

Browse files
author
andre_ramos
committed
fix but model with slope and without level
1 parent 1a39d5a commit d1c7d6b

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.12"
4+
version = "2.0.13"
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
@@ -1592,7 +1592,7 @@ function simulate_states(
15921592
end
15931593

15941594
slope = ones(T, N_scenarios) .* slope
1595-
model.level ? trend = ones(T, N_scenarios) .* trend : nothing
1595+
model.level || model.slope ? trend = ones(T, N_scenarios) .* trend : nothing
15961596
model.seasonal ? seasonals = [ones(T, N_scenarios) .* s for s in seasonals] : nothing
15971597
for t in (T + 1):(T + steps_ahead)
15981598
slope_t = if model.slope

0 commit comments

Comments
 (0)