leapfrog: Leapfrog inregration for HMC kernel

Description Usage Arguments Value

View source: R/leapfrog.R

Description

leapfrog integrtion

Usage

1
leapfrog(level, x, v, tuning)

Arguments

level

an integer that controls probability distribution utilized for calculation of gradients of the potential

x

position of the particle

v

velocity of the particle

tuning

a list that contains the stepsize and number of steps for the leapfrog integration

Value

list that contains new position of the particle, new velocsity of the particle and the cost of leapfrog integration (proportional to number of gradient evaluation)


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