Skip to content
Snippets Groups Projects
Verified Commit 2f531e55 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Do not resample particles twice.

parent 2f7e7301
Branches
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ function mdd = hssmc(TargetFun, mh_bounds, dataset_, dataset_info, options_, M_,
else
dprintf('%3u %5.4f %9.5E %5.4f %4.3f %3s %5.2f', i, phi(i), ESS(i), acpt(i), scl(i), 'no', tt)
end
if i==smcopt.steps
if i==smcopt.steps && ~resampled_particle_swarm
iresample = kitagawa(weights);
particles = particles(:,iresample);
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment