Commit fefb3528 authored by Frédéric Karamé's avatar Frédéric Karamé
Browse files

modification to make it comformable with the changes in resample.m

parent 51c53638
function indx = traditional_resampling(weights,noise)
function return_resample = traditional_resampling(particles,weights,noise)
% Resamples particles.
%@info:
......@@ -96,6 +96,12 @@ else
indx = indx+1;
end
if particles==0
return_resample = indx ;
else
return_resample = particles(indx,:) ;
end
%@test:1
%$ % Define the weights
%$ weights = randn(2000,1).^2;
......
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