gamma_coin | R Documentation |
Flips 'Gamma coin'; uses the Cauchy sequence S^gamma_k to determine whether or not the Brownian bridge starting at x, ending at y, between [s,t] remains in interval [l,v]
gamma_coin(u, k, x, y, s, t, l, v)
u |
simulated value from random U[0,1] |
k |
integer value starting index for calculating the intervals |
x |
start value of Brownian bridge |
y |
end value of Brownian bridge |
s |
start value of Brownian bridge |
t |
end value of Brownian bridge |
l |
lower bound of Brownian bridge |
v |
upper bound of Brownian bridge |
boolean value: if T, accept probability that Brownian bridge remains in [l,v], otherwise reject
gamma_coin(u = runif(1, 0, 1), k = 0, x = 0, y = 0, s = 0, t = 1, l = -0.5, v = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.