Learn R Programming

SciencesPo (version 1.3.9)

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 DataLab