coupled2_maximal_independent_residuals: (2-way) Maximally coupled multinomial resampling with...

View source: R/coupled2_resampling.R

coupled2_maximal_independent_residualsR Documentation

(2-way) Maximally coupled multinomial resampling with independent residuals

Description

This function performs (2-way) maximally coupled multinomial resampling with independent residuals on each particle system.

Usage

coupled2_maximal_independent_residuals(
  normweights1,
  normweights2,
  ndraws,
  rand
)

Arguments

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

Value

a matrix of ancestor indexes of size ndraws x 2.


jeremyhengjm/UnbiasedScore documentation built on Nov. 17, 2023, 1:48 a.m.