r.ou | R Documentation |
Sampling of paths of the Ornstein-Uhlenbeck process.
r.ou( n, t = seq(0, 1, len = 201), mu = 0, alpha = 1, sigma = 1, x0 = rnorm(n, mean = mu, sd = sigma/sqrt(2 * alpha)) )
n |
number of curves. |
t |
discretization points. |
mu |
mean of the process. |
alpha |
strength of the drift. |
sigma |
diffusion coefficient. |
x0 |
a number or a vector of length |
Functional sample, an fdata
object of length
n
.
Eduardo Garcia-Portugues (edgarcia@est-econ.uc3m.es).
plot(r.ou(n = 100)) plot(r.ou(n = 100, alpha = 2, sigma = 4, x0 = 1:100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.