Description Usage Arguments Value
Hamiltonian Monte Carlo with Dual Averaging
1 | HmcDual(theta0, delta, lambda, L, M, Madapt)
|
theta0 |
a p-dimensional vector with the initial value for each parameter. |
delta |
the desired average acceptance probability |
lambda |
trajectory length for leapfrog |
L |
a callable function that returns a 2-dimensional vector whose first element is the logarithm of the density of the input and the second is the gradient of the logarithm of the density evaluated at the input. |
M |
an integer specifying the number of iterations. |
Madapt |
an integer specifying the number of iterations of the warmup phase. |
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.