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
Johannes Pfeifer
dynare
Commits
914d97fb
Commit
914d97fb
authored
Sep 19, 2012
by
Stéphane Adjemian
Browse files
Added waitbar to prior_sampler routine.
parent
c40d83e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/prior_sampler.m
View file @
914d97fb
...
...
@@ -82,8 +82,14 @@ file_indx_number = 0;
oo_
.
dr
=
set_state_space
(
oo_
.
dr
,
M_
,
options_
);
hh
=
dyn_waitbar
(
0
,
'Please wait. Prior sampler...'
);
set
(
hh
,
'Name'
,
'Prior sampler.'
);
% Simulations.
while
iteration
<
NumberOfSimulations
if
~
mod
(
t
,
10
)
dyn_waitbar
(
iteration
/
NumberOfSimulations
,
hh
,
'Please wait. Prior sampler...'
);
end
loop_indx
=
loop_indx
+
1
;
params
=
prior_draw
();
M_
=
set_all_parameters
(
params
,
estim_params_
,
M_
);
...
...
@@ -145,6 +151,8 @@ while iteration < NumberOfSimulations
end
end
dyn_waitbar_close
(
hh
);
% Get informations about BK conditions and other things...
results
.
bk
.
indeterminacy_share
=
count_bk_indeterminacy
/
loop_indx
;
results
.
bk
.
unstability_share
=
count_bk_unstability
/
loop_indx
;
...
...
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