Skip to content
Snippets Groups Projects
Commit 363056a3 authored by Normann Rion's avatar Normann Rion
Browse files

Fix online_particle_filter.m: wrong condition for pruning in terms of order selection

parent d71f8be6
No related branches found
No related tags found
1 merge request!16Amends particle filters to use the local_state_space_iteration_3 mex
......@@ -159,7 +159,7 @@ for t=1:sample_size
indx = resample(0, tau_tilde', DynareOptions.particle);
StateVectors = StateVectors(:,indx);
xparam = fore_xparam(:,indx);
if DynareOptions.order>=3 && pruning
if pruning
StateVectors_ = StateVectors_(:,indx);
end
w_stage1 = weights(indx)./tau_tilde(indx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment