Skip to content

Commit

Permalink
fix simulate index
Browse files Browse the repository at this point in the history
  • Loading branch information
andre_ramos committed Jan 3, 2025
1 parent e3366b0 commit d1410dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StateSpaceLearning"
uuid = "971c4b7c-2c4e-4bac-8525-e842df3cde7b"
authors = ["andreramosfc <[email protected]>"]
version = "1.3.0"
version = "1.3.1"

[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Expand Down
2 changes: 1 addition & 1 deletion src/fit_forecast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function simulate(
end
else
start_seasonal_term = (size(components_matrix, 1) % seasonal_innovation_simulation)
for i in 1:seasonal_innovation_simulation
for i in 1:min(seasonal_innovation_simulation, steps_ahead)
= if is_univariate
Diagonal([
var(
Expand Down

0 comments on commit d1410dd

Please sign in to comment.