bounded_walk: Create a bounded random walk

Description Usage Arguments Examples

View source: R/bounded_random_walk.R

Description

This function creates a random or semi-random walk bounded by a maximum distance from the starting position.

Usage

1
bounded_walk(n.times = 100, maxDist = 10, start = c(0, 0))

Arguments

n.times

integer, the number of steps to take (default 100)

maxDist

numeric, the maximum distance from starting posistion (default NA)

start

x and y starting position (default (0,0))

Examples

1

vjf2/SocGen documentation built on April 24, 2021, 10:59 a.m.