Skip to content

Commit 55478f2

Browse files
fix smooth trend
1 parent fb60be8 commit 55478f2

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 = "StateSpaceModels"
22
uuid = "99342f36-827c-5390-97c9-d7f9ee765c78"
33
authors = ["raphaelsaavedra <[email protected]>, guilhermebodin <[email protected]>, mariohsouto"]
4-
version = "0.6.6"
4+
version = "0.6.7"
55

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

src/models/unobserved_components.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ function initial_hyperparameters!(model::UnobservedComponents)
461461
if model.has_irregular
462462
initial_hyperparameters["sigma2_irregular"] = observed_variance
463463
end
464-
if model.has_trend
464+
if model.stochastic_trend
465465
initial_hyperparameters["sigma2_trend"] = observed_variance
466466
end
467467
if model.has_cycle

0 commit comments

Comments
 (0)