SampledSymmetricRandomWalkGenerator: Generator of multiple paths of sampled symmetric random walk

Description Usage Arguments Examples

Description

Generator of symmetric random walk sampled n times.

Usage

1
2
3
sampledSymmetricRandomWalkGenerator(  steps = 3000,
                                      prob = c('head' = 0.5, 'tail' = 0.5),
                                      n = 1)

Arguments

steps

Number of steps of the random walk

prob

Probability of occurence of head and tail for each step

n

Number of sample generated by the function

Examples

1
2
# Generate 20 samples of a symmetric random walk
sampledSymmetricRandomWalkGenerator(n = 20)

AnthonyTedde/RandomWalk documentation built on Dec. 13, 2021, 11:02 p.m.