tentMap#
- peccary.examples.tentMap(n, mu=2.0)[source]#
Generate timeseries from tent map with parameter \(\mu\)
- Parameters:
- nint
Number of timesteps to generate
- mufloat, optional
Parameter for changing the map, by default 2.
- Returns:
- peccary.timeseries.Timeseries
Timeseries for tent map, stored in
xattribute ofTimeseriesclass
References
[1] For more information on the tent map, see Wolfram Mathworld’s entry.
Examples
To create a timeseries of 10 points using the tent map, e.g.,
>>> import peccary.examples as ex >>> tent = ex.tentMap(10)
The data can be called as follows:
>>> tent.x array([ 0.1, 0.2, 0.4, 0.8, 1.6, 3.2, -4.4, -8.8, -17.6, -35.2])
The \(\mu\) parameter can be changed to produce different types of behavior.