In [1]:
import os
os.getcwd()
Out[1]:
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]:
In [8]:
discords[0][0]
Out[8]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: