if~isempty(posterior_sampler_options.mode_files),% multimodal case
if~isempty(posterior_sampler_options.mode_files)% multimodal case
modes=posterior_sampler_options.mode_files;% these can be also mean files from previous parallel slice chains
load(modes,'xparams')
ifsize(xparams,2)<2,
ifsize(xparams,2)<2
error(['check_posterior_sampler_options:: Variable xparams loaded in file <'modes'> has size ['int2str(size(xparams,1))'x'int2str(size(xparams,2))']: it must contain at least two columns, to allow multi-modal sampling.'])
end
forj=1:size(xparams,2),
forj=1:size(xparams,2)
mode(j).m=xparams(:,j);
end
posterior_sampler_options.mode=mode;
...
...
@@ -386,7 +386,7 @@ if ~strcmp(posterior_sampler_options.posterior_sampling_method,'slice')