logistic.sim: Simulates time-series data from the Logistic map

View source: R/logistic.sim.R

logistic.simR Documentation

Simulates time-series data from the Logistic map

Description

This function simulates time-series data from the Logistic map considering the parameter set selected by the user. The initial condition is a random number between 0 and 1. Some initial conditions may lead to an unstable system that will tend to infinity.

Usage

logistic.sim(a = 4, s = 0, x0 = runif(1, 0, 1), n = 1000, n.start = 50)

Arguments

a

a non-negative integer denoting the value of parameter a (Default 4).

s

a non-negative integer denoting the variance value of the error term. If s=0 gives the standard deterministic map (Default 0).

x0

a non-negative integer denoting the initial condition (Default random number between 0 and 1).

n

a non-negative integer denoting the length (Default 1000).

n.start

a non-negative integer denoting the number of observations that will be discarded to ensure that the values are in the attractor (Default 50).

Value

A time-series data object generated from the Logistic map with or without an additive measurement noise term. This dataset could be useful for researchers interested in the field of chaotic dynamic systems and non-linear time series analysis and professors (and students) who teach (learn) courses related to those topics.

Note

This function provides also noisy time-series data from the deterministic logistic map adding an additive measurement noise term if s>0. We have added to each time-series data a normal multinomial error term denoted by {\varepsilon _t} \sim N\left( {0,s} \right) with different variance values (s). In this sense we have considered it appropriate to add a measurement noise term because most real-world observed time-series data are usually noise-contaminated signals, characterised by an erratic and persistent volatility in certain periods and there is almost always a source of noise linked to measurement errors in real-world datasets.

Author(s)

Julio E. Sandubete, Lorenzo Escot

References

May, R.M. 1976 Simple mathematical models with very complicated dynamics. Nature (261):459-467.

Examples

## set.seed(34)
## Simulates time-series data from the deterministic logistic map
## with a chaotic behaviour.
## ts <- logistic.sim(a=4, s=0, n=1000)
##
## Simulates time-series data from the deterministic logistic map
## with a non-chaotic behaviour.
## ts <- logistic.sim(a=3.2, s=0, n=1000)

DChaos documentation built on March 31, 2023, 6:48 p.m.

Related to logistic.sim in DChaos...