coupled2_hmc_kernel_extra_level: HMC kernel for two coupled chains that target distribitions...

Description Usage Arguments Value

View source: R/coupled2_hmc_kernel_extra_level.R

Description

generation of coupled proposals + accept/reject step

Usage

1
2
3
4
5
6
7
8
coupled2_hmc_kernel_extra_level(
  level,
  state1,
  state2,
  identical,
  tuning,
  proposal_coupling
)

Arguments

level

an integer that determines probability distribution

state1

a list with state of the first chain

state2

a list with state of the second chain

identical

a boolean variable that is True if chains are identical and False otherwise (it is always False for this function and it is left only for compatibility with other couplings)

tuning

a list of parameters neeeded for HMC (aka time step for leapfrog integration)

proposal_coupling

function that determing proposal coupling

Value

a list that contains states of two chains, updated value of the flag "identical" and cost of computations


jeremyhengjm/UnbiasedMultilevel documentation built on Dec. 20, 2021, 11:03 p.m.