Test the residual resampling algorithm.
testResample(values, weights, pseudo)
A vector of SMC particles.
A vector of importance weights for each particle.
A matrix of pseudo-data for each particle.
A list containing the following elements:
beta
A vector of resampled particles.
wt
The new importance weights, after resampling.
pseudo
A matrix of pseudo-data for each particle.
idx
The indices of the parents of the resampled particles.