Bugfix in mackey_glass

This commit is contained in:
Petrônio Cândido de Lima e Silva 2018-08-07 16:06:34 -03:00 committed by GitHub
parent 8fde4c4ea6
commit 329c7ba1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ def get_data(b=0.1, c=0.2, tau=17, initial_values = np.linspace(0.5,1.5,18), ite
''' '''
y = initial_values.tolist() y = initial_values.tolist()
for n in np.arange(len(y), iterations+100): for n in np.arange(len(y)-1, iterations+100):
y.append(y[n] - b * y[n] + c * y[n - tau] / (1 + y[n - tau] ** 10)) y.append(y[n] - b * y[n] + c * y[n - tau] / (1 + y[n - tau] ** 10))
return y[100:] return y[100:]