## Example 1
 driftx <- expression(cos(t*x*y))
 drifty <- expression(cos(t))
 diffx <- expression(0.1)
 diffy <- expression(0.1)
 PredCorr2D(N=5000, T = 1, t0=0, x0=0, y0=0, Dt=0.001, alpha = 0.5, 
            mu = 0.5, driftx, drifty, diffx, diffy, Step = FALSE, 
            Output = FALSE)
## ploting Step by Step
PredCorr2D(N=5000, T = 1, t0=0, x0=0, y0=0, Dt=0.001, alpha = 0.5, 
           mu = 0.5, driftx, drifty, diffx, diffy, Step = TRUE, 
           Output = FALSE)
## Example 2
## BM 2-D
 driftx <- expression(0)
 drifty <- expression(0)
 diffx <- expression(1)
 diffy <- expression(1)
 PredCorr2D(N=5000, T = 1, t0=0, x0=0, y0=0, Dt=0.001, alpha = 0.5, 
            mu = 0.5, driftx, drifty, diffx, diffy, Step = FALSE, 
            Output = FALSE)
## ploting Step by Step
PredCorr2D(N=5000, T = 1, t0=0, x0=0, y0=0, Dt=0.001, alpha = 0.5, 
           mu = 0.5, driftx, drifty, diffx, diffy, Step = TRUE, 
           Output = FALSE)
## Example 3
 driftx <- expression(0.03*t*x-x^3)
 drifty <- expression(0.03*t*y-y^3)
 diffx <- expression(0.1)
 diffy <- expression(0.1)
 PredCorr2D(N=5000, T = 1, t0=0, x0=0, y0=0, Dt=0.001, alpha = 0.5, 
            mu = 0.5, driftx, drifty, diffx, diffy, Step = FALSE, 
            Output = FALSE)
## ploting Step by Step
 PredCorr2D(N=5000, T = 1, t0=0, x0=0, y0=0, Dt=0.001, alpha = 0.5, 
           mu = 0.5, driftx, drifty, diffx, diffy, Step = FALSE, 
           Output = FALSE)Run the code above in your browser using DataLab