In [1]:
import os
import sys
sys.path.append("..")
In [3]:
from saxpy import znorm
ts = [-1., -2., -1., 0., 2., 1., 1., 0.]
z_thrsh = 0.001
x_scaled = [x / 100.0 for x in ts]
znorm.znorm(x_scaled, z_thrsh)
Out[3]:
In [4]:
ts = [-0.1, -0.2, 0.2, 0.1]
In [7]:
znorm.znorm(ts, z_thrsh)
Out[7]:
In [12]:
from numpy import std
std(znorm.znorm(ts, 0.5))
Out[12]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [8]:
os.getcwd()
Out[8]:
In [2]:
sys.path
Out[2]: