data.gen.Logistic function

Logistic map

Logistic map

Generates a time series using the logistic map.

data.gen.Logistic( nobs = 5000, r = 4, start = runif(n = 1, min = 0, max = 1), s, do.plot = TRUE )

Arguments

  • nobs: Length of the generated time series. Default: 5000 samples.
  • r: The r parameter. Default: 4
  • start: A numeric value indicating the starting value for the time series. If the starting point is not specified, it is generated randomly.
  • s: The level of noise, default 0.
  • do.plot: Logical value. If TRUE (default value), a plot of the generated Logistic system is shown.

Returns

A vector of time series.

Details

The logistic map is defined as follows:

xn=rxn1(1xn1)x[n]=rx[n1](1x[n1]) x_n = r \cdot x_{n-1} \cdot (1 - x_{n-1})x[n] = r * x[n-1] * (1 - x[n-1])

Examples

Logistic.map=data.gen.Logistic(nobs = 1000, do.plot=TRUE)

References

Constantino A. Garcia (2019). nonlinearTseries: Nonlinear Time Series Analysis. R package version 0.2.7. https://CRAN.R-project.org/package=nonlinearTseries