Skip to content

Commit

Permalink
Numerically stable bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
fipelle committed Feb 13, 2024
1 parent c6c89bc commit f536faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initialisation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ function initial_detrending(Y_untrimmed::Union{FloatMatrix, JMatrix{Float64}}, e
# Lower bound
params_lb = vcat(
-10*ones(sum(coordinates_free_params_B)), # loadings
1e-4*ones(1+n_trimmed), # variances of the cycles' innovations
1e-2*ones(1+n_trimmed), # variances of the cycles' innovations
1e-6*ones(estim.n_trends) # variance of the trends' innovations (as a function of the cycles)
);

# Upper bound
params_ub = vcat(
+10*ones(sum(coordinates_free_params_B)), # loadings
1e+4*ones(1+n_trimmed), # variances of the cycles' innovations
1e+2*ones(1+n_trimmed), # variances of the cycles' innovations
1e-4*ones(estim.n_trends) # variance of the trends' innovations (as a function of the cycles)
);

Expand Down

0 comments on commit f536faa

Please sign in to comment.