Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marco Ratto
dynare
Commits
b037bc94
Commit
b037bc94
authored
May 17, 2022
by
Johannes Pfeifer
Browse files
GSA sampling from prior range: replace infinity by huge number to avoid NaN
parent
9f265c5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/gsa/stab_map_.m
View file @
b037bc94
...
...
@@ -175,7 +175,9 @@ if fload==0
end
if
opt_gsa
.
prior_range
for
j
=
1
:
np
lpmat
(:,
j
)
=
lpmat
(:,
j
)
.*
(
bounds
.
ub
(
j
+
nshock
)
-
bounds
.
lb
(
j
+
nshock
))
+
bounds
.
lb
(
j
+
nshock
);
lower_bound
=
max
(
-
options_
.
huge_number
,
bounds
.
lb
(
j
+
nshock
));
upper_bound
=
min
(
options_
.
huge_number
,
bounds
.
ub
(
j
+
nshock
));
lpmat
(:,
j
)
=
lpmat
(:,
j
)
.*
(
upper_bound
-
lower_bound
)
+
lower_bound
;
end
else
xx
=
prior_draw_gsa
(
0
,[
lpmat0
lpmat
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment