SciencesPo (version 1.3.8)

levy.flight: Simulates a Levy Walk

Description

This function simulates a Levy walk

Usage

levy.flight(n = 500, alpha = 3, min.lenght = 1, max.lenght = 5,
  plot = TRUE)

Arguments

n
The lenght of walk.
alpha
The exponent of the Levy distribution.
min.lenght
The minimum length of a step.
max.lenght
The maximum length of a step.
plot
A logical, TRUE will make a plot.

Examples

Run this code
levy.flight(n=100, alpha=2)

Run the code above in your browser using DataCamp Workspace