Learn R Programming

Sim.DiffProc (version 2.5)

BMRW2D: Simulation Two-Dimensional Brownian Motion (by a Random Walk)

Description

simulation 2-dimensional brownian otion in plane (O,X,Y).

Usage

BMRW2D(N, t0, T, x0, y0, Sigma, Step = FALSE, Output = FALSE)

Arguments

N
size of process.
t0
initial time.
T
final time.
x0
initial value of BM1(t) at time t0.
y0
initial value of BM2(t) at time t0.
Sigma
constant positive.
Step
if Step = TRUE ploting step by step.
Output
if output = TRUE write a output to an Excel (.csv).

Value

  • data.frame(time,W1(t),W2(t)) and plot of process 2-D.

Details

see , BMRW

See Also

BMRW3D Simulation Three-Dimensional Brownian Motion.

Examples

Run this code
BMRW2D(N=5000, t0=0, T=1, x0=0, y0=0,Sigma=0.2, 
      Step = FALSE, Output = FALSE)

Run the code above in your browser using DataLab