for slice, always initialize empty invhess unless a new chain is initialized from a mode file

time-shift
Marco Ratto 2015-09-25 17:09:07 +02:00 committed by Johannes Pfeifer
parent 9089fc340c
commit a96dd5b964
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ if strcmp(options_.posterior_sampling_method,'slice')
if options_.load_mh_file,
posterior_sampler_options.slice_initialize_with_mode = 0;
else
if ~posterior_sampler_options.slice_initialize_with_mode,
posterior_sampler_options.invhess=[];
end
end
if posterior_sampler_options.rotated,