log_rho_univariate | R Documentation |
Calculation of the log of rho acceptance probability or weight when target is univariate
log_rho_univariate(x, x_mean, time, precondition_values)
x |
vector of sampled sub-posterior values |
x_mean |
weighted mean of sampled sub-posterior values |
time |
time T for fusion algorithm |
precondition_values |
precondition values associated to each sub-posterior |
the logarithm of rho
x <- rnorm(4, 0, 1) precondition_vals <- c(1, 2, 3, 4) x_mean <- weighted_mean_univariate(x = x, weights = 1/precondition_vals) log_rho_univariate(x = x, x_mean = x_mean, time = 0.5, precondition_values = precondition_vals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.