Commit 1ac55d8b authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug.

parent ec9b4742
......@@ -135,7 +135,7 @@ for t=1:sample_size
nb_obs_resamp = nb_obs_resamp+1 ;
StateVectors = tmp(mf0,resample(weights,DynareOptions.particle.resampling.method1,DynareOptions.particle.resampling.method2));
weights = ones(1,number_of_particles)/number_of_particles ;
elseif strcmpi(DynareOptions.particle_filter.resampling.status,'none')
elseif strcmpi(DynareOptions.particle.resampling.status,'none')
StateVectors = tmp(mf0,:);
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment