In [1]:
import os 
os.getcwd()


Out[1]:
'/home/psenin/git/saxpy/jupyter'

In [2]:
os.chdir("/home/psenin/git/saxpy")
import numpy as np
from saxpy.znorm import znorm
from saxpy.discord import find_discords_brute_force

In [3]:
from numpy import genfromtxt
dd = genfromtxt("data/ecg0606_1.csv", delimiter=',')

In [4]:
import matplotlib.pyplot as plt
plt.plot(dd)
plt.show()



In [5]:
discords = find_discords_brute_force(dd[0:400], 100, 4)
discords


Out[5]:
[(173, 5.1145707192350738),
 (26, 4.9594742669641372),
 (299, 2.3370302965046825)]

In [8]:
discords[0][0]


Out[8]:
173

In [ ]:


In [ ]:


In [ ]:


In [ ]: