dynare/matlab/particle/neff.m

4 lines
76 B
Matlab

function n = neff(w)
% Evaluates the criterion for resampling
n = dot(w,w);