powered by
Simulate sample paths from standard Brownian motion (Wiener process).
r.brownian(n, t, sigma = 1, x0 = 0, seed = NULL)
An fdata object containing the simulated paths.
Number of sample paths.
Evaluation points.
Volatility (standard deviation per unit time, default 1).
Initial value (default 0).
Optional random seed.
t <- seq(0, 1, length.out = 100) bm_data <- r.brownian(n = 20, t = t) plot(bm_data)
Run the code above in your browser using DataLab