powered by
Generate a d-dimensional momentum where the density of each element is proportional to exp(-|pi|).
drawLaplaceMomentum(d)
a d-dimensional Laplace-distributed momentum.
dimension of the momentum.
zigzagHMC()
# Draw a 3-dimensional Laplace momentum with reproducible results set.seed(3) momentum <- drawLaplaceMomentum(3) momentum
Run the code above in your browser using DataLab