SampledSymmetricRandomWalk: Generator of a single path of sampled symmetric random walk

Description Usage Arguments Examples

Description

Generator of symmetric random walk sampled only one time. It means it corresponds to a single random walk's path.

Usage

1
2
sampledSymmetricRandomWalk( steps = 3000,
                            prob = c('head' = 0.5, 'tail' = 0.5))

Arguments

steps

Number of steps of the random walk

prob

Probability of occurence of head and tail for each step

Examples

1
2
# Generate a 150 steps symmetric random walk
sampledSymmetricRandomWalk(steps = 150)

AnthonyTedde/RandomProcesses documentation built on Dec. 14, 2021, 10:39 a.m.