Learn R Programming

statcomp (version 0.0.1.1000)

logistic_map: A function to generate a time series from the logistic map

Description

Generates a time series from the logistic map

Usage

logistic_map(N, r, start="rand", disregard_N=0)

Arguments

N
length of the time series that is to be generated
r
logistic map parameter, must be in the range [0,4]
start
start value. Default is to random.
disregard_N
Number of values at the beginning of the series to disregard

Value

A vector of length N

References

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

Examples

Run this code
logistic_map(N = 10^4, r=4)

Run the code above in your browser using DataLab