coupled4_resampling: (4-way) Coupled multinomial resampling using common uniforms...

View source: R/coupled4_resampling.R

coupled4_resamplingR Documentation

(4-way) Coupled multinomial resampling using common uniforms random variables

Description

This function performs (4-way) coupled multinomial resampling on each particle system using common uniform random variables.

Usage

coupled4_resampling(
  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.