Skip to content

Instantly share code, notes, and snippets.

@astrolitterbox
astrolitterbox / JRP_test.py
Created February 1, 2023 15:22
JRP case test
import numpy as np
from pyunicorn.timeseries import RecurrencePlot, RecurrenceNetwork, CrossRecurrencePlot, JointRecurrencePlot
def logistic_map(x0, r, T):
"""
Returns a time series of length T using the logistic map
x_(n+1) = r*x_n(1-x_n) at parameter r and using the initial condition x0.
INPUT: x0 - Initial condition, 0 <= x0 <= 1