


RESAMPLE Resampling for particle filtering
Syntax:
ind = RESAMPLE(W,alg)
Author:
Simo Särkkä, 2002
In:
W - Positive weights descibing the relative
probabilities of particles. Can be a numeric
array or a cell array containing particle structures.
The weights do not not need to sum to unity.
alg - Algorithm index. Currently only "simple"
algorithm as index 1 is defined. (optional, default 1)
Out:
ind - Indices of resampled particles. There may be multiple
indices and some of them might be missing, but that is
the whole idea of resampling.
Description:
Resampling for particle filtering.