update mh_mode with slice and load_mh_file

time-shift
Marco Ratto 2017-02-03 12:59:34 +01:00 committed by Stéphane Adjemian (Charybdis)
parent f52035a3a0
commit 20b0fc8bac
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ lpost_mode = posterior_kernel_at_the_mode;
xparam1 = posterior_mean;
hh = inv(SIGMA);
fprintf(' Done!\n');
if ~isfield(oo_,'posterior_mode')
if ~isfield(oo_,'posterior_mode') || (options_.mh_replic && isequal(options_.posterior_sampler_options.posterior_sampling_method,'slice'))
oo_=fill_mh_mode(posterior_mode',NaN(npar,1),M_,options_,estim_params_,bayestopt_,oo_,'posterior');
end