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/RandomProcesses documentation built on Oct. 30, 2019, 4:56 a.m.