rBrownianBridge | R Documentation |
Simulate a Brownian bridge
rBrownianBridge(times, B0T = c(0, 0), sigma = 1)
times |
numeric vector of time points where the Brownian motion should be simulated |
B0T |
initial and terminal condition; the fixed value of the Brownian motion at the first and last time points |
sigma |
scalar; the noise level in the Brownian motion. |
a numeric vector, length(times), containing a sample path
times <- 10:20
BB <- rBrownianBridge(times,c(10,-10),2)
plot(times,BB,type="b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.