mvtsa.representation.abba#

mvtsa.representation.abba(x, tol=0.1, n_symbols=None, scale=1.0, random_state=0)[source]#

ABBA symbolic representation of a univariate series.

Parameters:
tolfloat

Compression tolerance: a linear piece is extended while the squared error stays below \((\ell-1)\,\text{tol}^2\).

n_symbolsint, optional

Number of symbols (k-means clusters of the pieces); default: the smallest k for which the clustering error is below the tolerance bound, at most 26.

scalefloat

Weight of the length relative to the increment in the clustering.

Returns:
symbolsstr
piecesarray (m, 2)

(length, increment) of every piece.

centersarray (k, 2)

Representative (length, increment) of every symbol.