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

modification of the output to make it conformable with the modification in resample.m

parent 920d2af8
function indx = residual_resampling(weights,noise)
function return_resample = residual_resampling(particles,weights,noise)
% Resamples particles.
%@info:
......@@ -105,6 +105,11 @@ for i=1:number_of_particles
k = k + iWEIGHTS(i);
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