Description Usage Arguments Value See Also Examples
A simple multinomial resampling algorithm; produces a list of indices corresponding to n independent samples with replacement from the categorical distribution with the provided weight vector.
1 | multi.resamp(p.wei, n = length(p.wei))
|
p.wei |
Normalized particle weights |
n |
Number of particles (defaults to the length of the weight vector) |
List of particle indices.
resid.resamp strat.resamp system.resamp
1 2 3 | weight <- runif(10)
weight <- weight / sum(weight)
resample.idx <- multi.resamp( weight)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.