Description Usage Arguments Value
View source: R/compute_distance_metropolis_idchecking.R
compute an upper bound for the 2-Wasserstein distance between Metropolis sampler in metropolis_condbern.R and the Conditional-Bernoulli distribution
1 2 3 4 5 6 7 | compute_distance_metropolis_to_condbern(
alpha,
sum_x,
num_mcmc,
num_repeat,
distance = "tv"
)
|
alpha |
vector of probabilities for the Poisson-Binomial distribution |
sum_x |
sum of all entries |
num_mcmc |
number of MCMC iterations to run before coupling |
num_repeat |
number of repetitions to get an estimate of the upper bound |
distance |
can be 'tv' or 'wasserstein' |
a vector of distance upper bounds for different number of iterations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.