Upload 16 files
Browse filesFiles changed (16)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162# The included pre-generated Mackey-Glass time series were generated on # an M1 machine using the following script. Note that due to the reliance# of jitcdde on lower-level solvers, this script may not produce the same# results on different machines. (Tested on various x64 and M1 architectures,# with consistent library versions.)# Thus it is recommended to use the pre-generated time series.
# generates mackey-glass time series using jitcddefrom jitcdde import jitcdde, y, timport numpy as npimport csv
def generator(tau, lyap_time, initial_condition): # MG parameters beta = 0.2 gamma = 0.1 n = 10
# total time to integrate, 50 lyapunov times total_time = lyap_time*50 # number of steps to integrate: 50 lyap_times, 75 steps each, plus one to eval steps = 50 * 75 + 1
f = [beta*y(0,t-tau)/(1+y(0,t-tau)**n)-gamma*y(0)] DDE = jitcdde(f)
# shrink integration parameters DDE.set_integration_parameters(atol=1e-17, rtol=1e-17, min_step=1e-17)
DDE.constant_past([initial_condition]) DDE.step_on_discontinuities()
# generate data = [] for time in np.linspace(DDE.t, DDE.t+total_time, steps): data.append(DDE.integrate(time)[0])
return np.array(data)
if __name__ == '__main__': taus = [] lyap_times = [] initial_conditions = []
# read csv with open('mackey_glass_parameters.csv', newline='') as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: # skip header if row[0] == 'tau': continue taus.append(int(row[0])) lyap_times.append(int(row[1])) initial_conditions.append(float(row[2])) # generate for tau, lyap_time, initial_condition in zip(taus, lyap_times, initial_conditions): data = generator(tau, lyap_time, initial_condition) assert(len(data) == 50*75+1) np.save('mg_{}.npy'.format(tau), data)
123456789101112131415tau,lyapunov_time,initial_condition17,197,0.720659718,138,0.774431319,315,0.778346820,131,0.922599121,191,0.947943122,119,0.545596023,106,0.862224724,97,0.325966025,98,0.829782526,104,1.003349027,112,0.649140628,119,1.095749529,131,0.925617930,139,0.2713639123version https://git-lfs.github.com/spec/v1oid sha256:5a38b38eca91667c120a3fbbe1a27859ef6071c521a03753ef1cace39d3ce745size 30136123version https://git-lfs.github.com/spec/v1oid sha256:f43853cdd3e862c30b0836e07a57a438a6f415d8f0afa91ab850f9a6d84d298bsize 30136123version https://git-lfs.github.com/spec/v1oid sha256:1de21d6bf519d0286b618b3563a60f00e220e641815b491d1d524eacd6f67afdsize 30136123version https://git-lfs.github.com/spec/v1oid sha256:699311e052410184db0f123335eb25bb076bd6beccd32e00fa981690dbc391f6size 30136123version https://git-lfs.github.com/spec/v1oid sha256:11087f595ca3e964a236f944e246ad2ebe227896177d5652d03fba8c21d0469esize 30136123version https://git-lfs.github.com/spec/v1oid sha256:49d214dd59611ae1573ff37d215b2a61d53721b770a8143b8eb2331e9a6a9a12size 30136123version https://git-lfs.github.com/spec/v1oid sha256:01d0069db4cedcd060979af2e984e708ec2f4c9a6d2f716185a70682c1e97379size 30136123version https://git-lfs.github.com/spec/v1oid sha256:bd5f911a0c5348f5cd56bc3c2081d8eac8a551d0a7d9d9f462634b08491b8d2asize 30136123version https://git-lfs.github.com/spec/v1oid sha256:661bb643eafa49282cb82e432b40abb167d8047a39a348e009b8cd5478e6fb4fsize 30136123version https://git-lfs.github.com/spec/v1oid sha256:cde16f2fec2621e54f678c86c06c80f86ddff6ec636e2541ffb0e071647da838size 30136123version https://git-lfs.github.com/spec/v1oid sha256:0196d4820df10c6cea0de1e107c764b0e5efcb4ef055059d45a142b02a35c119size 30136123version https://git-lfs.github.com/spec/v1oid sha256:ed680acfb0b08f6f2fd3a26332a9fa1ceeb064fd36c72279898b4814fbdf1692size 30136123version https://git-lfs.github.com/spec/v1oid sha256:b34f4e1a69f54605106e89da941160b29dd3762a28274c2b2ba8cc4741cc8cd0size 30136123version https://git-lfs.github.com/spec/v1oid sha256:9ddd5311028f66cf54b67e3529eb765f4472ef75476f5cd65081b340132f026asize 30136generator.pyAdded+62
mackey_glass_parameters.csvAdded+15
mg_17.npyAdded+3
mg_18.npyAdded+3
mg_19.npyAdded+3
mg_20.npyAdded+3
mg_21.npyAdded+3
mg_22.npyAdded+3
mg_23.npyAdded+3
mg_24.npyAdded+3
mg_25.npyAdded+3
mg_26.npyAdded+3
mg_27.npyAdded+3
mg_28.npyAdded+3
mg_29.npyAdded+3
mg_30.npyAdded+3