Description Usage Arguments Value
This function performs the Hamiltonian Monte Carlo.
1 | Hmc(theta0, epsilon, leap.nsteps, L, M)
|
theta0 |
a p-dimensional vector with the initial value for each parameter. |
epsilon |
a non-negative value specifying the leapfrog step size. |
leap.nsteps |
an integer number specifying the number of leapfrog steps. |
L |
callable function: returns the value of log posterior and the gradient of log posterior probability at given input. |
M |
an integer specifying the number of iterations. |
This function returns a matrix whose m-th row is a sample from the joint density.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.