max_Bessel_bridge_sampler: Bessel Bridge point sampler given maximum

View source: R/RcppExports.R

max_Bessel_bridge_samplerR Documentation

Bessel Bridge point sampler given maximum

Description

Simulation of a point of a Bessel bridge at time q, given maximum occurs at time tuu

Usage

max_Bessel_bridge_sampler(x, y, s, t, m, tau, q, checks = TRUE)

Arguments

x

start value of Bessel bridge

y

end value of Bessel bridge

s

start time of Bessel bridge

t

end time of Bessel bridge

m

maximum point

tau

time of maximum point

q

time of simulation

checks

logical value to determine if arguments that are passed into the function are checked. Things that are checked include that s < t, that q is in [s,t], that tau is in [s,t], that m >= min(x,y) and that if tau == s or tau == t, then m == x or m == y, respectively

Value

simulated point of the Bessel bridge at time q

Examples

# simulating a point at q=0.2 for a Bessel bridge starting at 0 and ending 
# at 0 in time [0,1] given maximum is at 0.4 at time 0.6
max_Bessel_bridge_sampler(x = 0,
                          y = 0,
                          s = 0,
                          t = 1,
                          m = 0.4,
                          tau = 0.6,
                          q = 0.2)

rchan26/layeredBB documentation built on March 25, 2022, 3:44 a.m.