logacceptance_ratio_logu | R Documentation |
This function computes the Metropolis-Hastings ratio to decide whether to accept or reject a new value for logU.
logacceptance_ratio_logu(logu, logu_prime, n, r, gamma, kappa, a, delta)
logu |
Real, log of the latent variable U at the current iteration. |
logu_prime |
Real, log of the new proposed latent variable U. |
n |
Integer, number of data points. |
r |
Integer, number of clusters. |
kappa |
Positive real. A parameter of the NRMI process. |
a |
Positive real. Total mass of the centering measure. |
delta |
Scale of the Metropolis-Hastings proposal distribution |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.