sde_rk2: Runge-Kutta solver for Ito SDEs

Description Usage Arguments Value

View source: R/RungeKutta2.R

Description

The stochastic Runge-Kutta for SDEs. See wikipedia for mathematical details.

Usage

1
sde_rk2(x0, tt, drift, diffusion, n = 1000)

Arguments

x0

initial value of the process

tt

length to simulate over

drift

the drift coefficient function of space-time in the order (t, x)

diffusion

the diffusion coefficient function of space-time, in the order (t, x)

n

number of sub-intervals in time-discretization

Value

data.frame


shill1729/sdes documentation built on Aug. 30, 2021, 6:36 p.m.