Description Usage Arguments Details Value
View source: R/EulerMaruyama.R
A general Euler scheme implementation for arbitrary first-order SDE systems with two state variables.
1 2 3 4 5 6 7 8 9 10 |
IC |
a list of variables with the same names as the non-time input as drifts, in the same order with initial values |
t0 |
initial time |
tn |
ending time |
drifts |
a list of drift functions with as many variables as IC, and in the same order with the names |
diffusions |
a list of volatility functions with as many variables as IC, and in the same order with the names |
rho |
the correlation factor |
n |
number of sub-intervals in time-grid |
plotPhaseSpace |
whether to plot the phase-space graph in the function body |
The list of functions must have syntax h(t,x,y)
for each element matching the elements of IC
as list(x = y0, y = y0)
for example.
numeric data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.