diff --git a/matlab/particle/sequential_importance_particle_filter.m b/matlab/particle/sequential_importance_particle_filter.m index a3747bbaf..13aaf30c2 100644 --- a/matlab/particle/sequential_importance_particle_filter.m +++ b/matlab/particle/sequential_importance_particle_filter.m @@ -130,17 +130,17 @@ for t=1:sample_size wtilde = weights.*exp(lnw-dfac); lik(t) = log(sum(wtilde))+dfac; weights = wtilde/sum(wtilde); - if strcmpi(DynareOptions.particle.resampling.status,'generic')) + if strcmp(DynareOptions.particle.resampling.status,'generic')) Neff = 1/(weights*weights'); end - if (Neff