Description Usage Arguments Value See Also Examples
A simple wrapper for yuima's SDE simulation methods
1 2 | simulate_sde(driftExpression, diffExpression, samplingPeriod, tsLength,
stateVariable = "x", xinit, trueParameter = list())
|
driftExpression, diffExpression |
A string/expression specifying the drift and diffusion terms |
samplingPeriod |
The sampling period of the resulting time series |
tsLength |
The length of the resulting time series |
stateVariable |
Vector of names of the variables used in the drift and diffusion equations. |
xinit |
Initial value for the resulting time series |
trueParameter |
A list containing the true parameters of the drift and diffusion expressions (in the case that there are some unknown values). |
A matrix containing the simulated trajectory.
1 2 3 | simTs = simulate_sde("-x", "sqrt(2)", 0.001, 1000)
plot.ts(simTs, xlab = "Time t", ylab = "x(t)",
main = "Ornstein-Uhlenbeck process")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.