View source: R/coupled4_resampling.R
coupled4_maximallevels_maximalchains_coupled_residuals | R Documentation |
This function performs (4-way) coupled multinomial resampling by maximally coupling pairs of indexes across levels and maximally coupling chains on each level with with coupled residuals using common uniform random variables on each particle system.
coupled4_maximallevels_maximalchains_coupled_residuals(
normweights_coarse1,
normweights_coarse2,
normweights_fine1,
normweights_fine2,
ndraws,
rand
)
normweights_coarse1 |
normalized weights of first particle system on coarse level |
normweights_coarse2 |
normalized weights of second particle system on coarse level |
normweights_fine1 |
normalized weights of first particle system on fine level |
normweights_fine2 |
normalized weights of second particle system on fine level |
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 4.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.