mvtsa.representation.SAX#

class mvtsa.representation.SAX(n_segments=8, alphabet_size=4)[source]#

Bases: object

SAX transform with n_segments PAA frames and alphabet_size symbols.

Examples

>>> s = SAX(4, 3)
>>> s.transform(np.arange(16.0))
['a', 'a', 'c', 'c']
mindist(a, b, length)[source]#

Lower bound of the Euclidean distance of the z-normalized series from their SAX index arrays (Lin et al., 2003).

transform(x)[source]#

Symbol list (univariate) or list of words per variable.