logisticMap: Logistic map

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Generates a time series using the logistic map.

Usage

1
2
3
  logisticMap(r = 4,
    start = runif(n = 1, min = 0, max = 1),
    n.sample = 5000, n.transient = 500, do.plot = TRUE)

Arguments

start

A numeric value indicating the starting value for the time series. If the starting point is not specified, it is generated randomly.

r

The r parameter. Default: 4

n.sample

Length of the generated time series. Default: 5000 samples.

n.transient

Number of transient samples that will be discarded. Default: 500 samples.

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])

The default selection for the r parameter is known to produce a deterministic chaotic time series.

Value

A vector containing the values of the time series that has been generated.

Note

Some initial values may lead to an unstable system that will tend to infinity.

Author(s)

Constantino A. Garcia

References

Strogatz, S.: Nonlinear dynamics and chaos: with applications to physics, biology, chemistry and engineering (Studies in Nonlinearity)

See Also

henon, lorenz, rossler, ikedaMap, cliffordMap, sinaiMap, gaussMap

Examples

1
2
3
4
## Not run: 
log.map=logisticMap(n.sample = 1000, n.transient=10,do.plot=TRUE)

## End(Not run)

nonlinearAnalysis documentation built on May 2, 2019, 6:11 p.m.