powered by
The RW2dimension function computes direction random walk moves.
RW2dimension(steps = 100, probs = c(0.25, 0.5, 0.75))
An integer that counts the number of steps of the random walk.
integer
A vector of double that specifies the probabilities to choose each direction.
vector
double
# NOT RUN { RW2dimension(steps = 50, probs = c(0.2, 0.5, 0.6)) # }
Run the code above in your browser using DataLab