coupled4_maximal_independent_residuals: (4-way) Maximally coupled multinomial resampling with...

View source: R/coupled4_resampling.R

coupled4_maximal_independent_residualsR Documentation

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

Description

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

Usage

coupled4_maximal_independent_residuals(
  normweights1,
  normweights2,
  normweights3,
  normweights4,
  ndraws,
  rand
)

Arguments

normweights1

normalized weights of first particle system

normweights2

normalized weights of second particle system

normweights3

normalized weights of third particle system

normweights4

normalized weights of fourth 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 4.


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