View source: R/coupled2_resampling.R
coupled2_maximal_independent_residuals | R Documentation |
This function performs (2-way) maximally coupled multinomial resampling with independent residuals on each particle system.
coupled2_maximal_independent_residuals(
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.