INNER CODE UNIT · Python
diffs
target/matrixprofile-ts · matrixprofile/annotation_vector.py:19
diffs = np.diff(ts, append=0)**2
diff_mean, diff_std = movmeanstd(diffs, m)
complexity = np.sqrt(diff_mean)
complexity = complexity - complexity.min()
complexity = complexity / complexity.max()
return complexity
def make_meanstd_AV(ts, m):
""" returns boolean annotation vector which selects windows with a standard deviation greater than average """
_, std = movmeanstd(ts, m)
mu = std.mean()
return (std < mu).astype(int)
def make_clipping_AV(ts, m):
"""