Description Usage Arguments Value Examples
Performs Hamiltonian Monte Carlo for a desired target function.
1 | hmc(f, init, numit, L, eps, mass)
|
f |
Minus log-density function of interest. |
init |
Initial point for the algorithm. |
numit |
Number of iterations. |
L |
Leapfrog parameter: number of steps. |
eps |
Leapfrog parameter: size of each step. |
mass |
Mass vector. |
A list with the chain with the samples of interest, the values of the log-density calculated at each step and the acceptance rate.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.