systematic_sample | R Documentation |
Implement systematic resampling to reduce variance in weighted particle selection
systematic_sample(nsamples, weights, log = F)
nsamples |
number of samples to draw |
weights |
vector of length equal to the number of particles, containing their weights |
log |
logical indicating if weights are log-weights |
vector of indices of the sampled particles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.