View source: R/coupled2_resampling.R
coupled2_resampling | R Documentation |
This function performs (2-way) coupled multinomial resampling on each particle system using common uniform random variables.
coupled2_resampling(normweights1, normweights2, ndraws, rand)
normweights1 |
normalized weights of first particle system |
normweights2 |
normalized weights of second particle system |
ndraws |
number of samples from multinomial distribution |
rand |
common uniform random variables used for the coupled resampling |
a matrix of ancestor indexes of size ndraws x 2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.