flight_LevyPareto | R Documentation |
Creates a Rayleigh flight by taking increments from the Normal distributions
implemented as the stable distribution (stabledist::rstable()
) with index paramter alpha = 1.5
and skewness parameter beta = 0
.
flight_LevyPareto(
N = 1000,
ndims = 2,
alpha = 1.5,
beta = 0,
scale = 1,
location = 0
)
N |
Length of time series (default = |
ndims |
Number of dimensions (default = |
alpha |
Index of stability parameter in |
beta |
Skewness parameter in |
scale |
Scale parameterin |
location |
Location (shift) parameter in |
Note that the increments are not strictly from the distribution called the Levy distribution, but rather a
a Levy-with-Pareto-tail-type distribution (i.e. when 1 < alpha < 2
). Use alpha = 1/2
and beta = 1
if the Levy distribution
is required.
A data frame with ndims
columns and N
rows.
# Levy-Pareto
df <- flight_LevyPareto()
plot(density(diff(df$dim1)))
plot(df$dim1, df$dim2, type = "l")
# "The" Levy distribution
df <- flight_LevyPareto(alpha = 1/2, beta = 1)
plot(density(diff(df$dim1)))
plot(df$dim1, df$dim2, type = "l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.