data.gen.Logistic: Logistic map

Description Usage Arguments Details Value References Examples

View source: R/data_gen_Chaotic.R

Description

Generates a time series using the logistic map.

Usage

1
2
3
4
5
6
7
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.

Details

The logistic map is defined as follows:

x[n] = r * x[n-1] * (1 - x[n-1])

Value

A vector of time series.

References

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

Examples

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

synthesis documentation built on May 3, 2021, 9:07 a.m.