Description Usage Arguments Details Value
View source: R/euler_maruyama2.R
TO BE DEPRECATED—–Euler-Maruyama scheme for simulationg Ito diffusion.
1 2 3 4 5 6 7 8 9 | euler_maruyama2(
maturity,
mu,
volat,
x0 = 0,
n = 100,
expIto = FALSE,
spot = NULL
)
|
maturity |
timespan of simulation |
mu |
drift coefficient function |
volat |
volatility coefficient function |
x0 |
initial position |
n |
number of time sub-intervals in simulation |
expIto |
boolean whether or not to simulate Ito diffusion directly or an exponential Ito diffusion, i.e. S_0 e^{X_t} where X_t is the Ito diffusion. |
spot |
defaults to NULL if not using an exponential-Ito process, otherwise enter a spot price. |
Simple time-stepping scheme over each sub-interval. See details on e.g. wikipedia
data.frame time series
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.