Description Usage Arguments Value Author(s) References See Also Examples
The function rbrownian
is a C-level function which uses the Ziggurat in order to simulate the normal random variables.
1 |
n |
integer, number of paths. |
m |
integer, number of steps, the step size will be T/m. |
b0 |
double, the initial value (or a vector of initial values of size |
mu |
double, the mean. |
sd |
double, the standard deviation. |
T |
double, the final date on which the brownian motion is simulated. |
drop |
logical, if |
nthreads |
integer, the number of threads to use for parallelism. |
Returns a n x m+1 matrix of n path of the brownian motion.
Nicolas Baradel - PGM Solutions
https://en.wikipedia.org/wiki/Brownian_motion
https://pgm-solutions.com/packages
1 2 | rbrownian(5, 10)
#rbrownian(5, 10, nthreads = maxthreads())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.