Learn R Programming

Sim.DiffProc (version 2.5)

BMRW3D: Simulation Three-Dimensional Brownian Motion (by a Random Walk)

Description

simulation 3-dimensional brownian otion in (O,X,Y,Z).

Usage

BMRW3D(N, t0, T, X0, Y0, Z0, Sigma, 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.
Z0
initial value of BM3(t) at time t0.
Sigma
constant positive.
Output
if output = TRUE write a output to an Excel (.csv).

Value

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

Details

see , BMRW

See Also

BMN3D Simulation Three-Dimensional Brownian Motion.

Examples

Run this code
BMRW3D(N=500, t0=0, T=1, X0=0.5, Y0=0.5, Z0=0.5, 
      Sigma=0.3, Output = FALSE)

Run the code above in your browser using DataLab