rhrBasePRW: Permutate walk

Description Usage Arguments Value References Examples

Description

permuates a walk by reusing the original distances between steps and connecting them with angles drawn from a uniform distribution between 0 and 360.

Usage

1
rhrBasePRW(x, y)

Arguments

x

Numeric vector, the x coordinates.

y

Numeric vector, the y coordinates.

Value

Numeric matrix with the x and y coordinates of the new path.

References

http://www.esajournals.org/doi/abs/10.2307/1939170

Examples

1
2
3
4
5
6
set.seed(123)
x <- cumsum(rnorm(500))
y <- cumsum(rnorm(500))

## Permutate path by shuffling segments and random adding random angles
p1 <- rhrBase::rhrBasePRW(x, y)

jmsigner/rhrBase documentation built on May 19, 2019, 2:57 p.m.