From 329c7ba1e7f7be7fe7c3df06dfcfd5cd84b315fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Tue, 7 Aug 2018 16:06:34 -0300 Subject: [PATCH] Bugfix in mackey_glass --- pyFTS/data/mackey_glass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyFTS/data/mackey_glass.py b/pyFTS/data/mackey_glass.py index 6743168..792d60f 100644 --- a/pyFTS/data/mackey_glass.py +++ b/pyFTS/data/mackey_glass.py @@ -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() - 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)) - return y[100:] \ No newline at end of file + return y[100:]