single_trajectory: Simulate a single trajectory of a random walk

Description Usage Arguments Value Examples

View source: R/random_walk.R

Description

Simulate a single trajectory of a random walk

Usage

1
single_trajectory(T, p = 0.5, nozero = FALSE)

Arguments

T

time horizon

p

up probability (defaults to 0.5)

nozero

whether to remove the leading zero

Value

vector

Examples

1
single_trajectory(T=10, p=0.3, nozero=FALSE)

gordanz/lanci documentation built on Oct. 16, 2020, 5:09 p.m.