Added waitbar to prior_sampler routine.

time-shift
Stéphane Adjemian (Scylla) 2012-09-19 16:27:26 +02:00
parent c40d83e974
commit 914d97fb53
1 changed files with 8 additions and 0 deletions

View File

@ -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;