View source: R/Simulate_Data.R
compute_random_walk | R Documentation |
Compute a (Gaussian) random walk.
compute_random_walk(n, p, mu, sigma, start = rep(0, n))
n |
an integer, the number of random walks. |
p |
an integer, the length of the random walks. |
mu |
a numerical vector, the mean of the random walks. |
sigma |
a numerical value which is the standard deviation of the gaussian distribution used to compute the random walks. |
start |
a numerical vector (optional) which is the initial value of the random walks. |
See the sim_x
function.
a matrix where each row is a random walk.
# see the sim_x() function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.