pyhctsa.operations.symbolic.binary_stats

pyhctsa.operations.symbolic.binary_stats(y, binary_method='diff')

Compute statistics on a binary symbolisation of the input time series.

The time series is first symbolized as a binary string of 0s and 1s using a specified coarse-graining (symbolisation) method. Then, various statistics are computed to characterize the structure of the resulting binary sequence.

Parameters:
y : array-like

The input time series.

binary_method : str, optional

The binary symbolisation rule. One of:

  • ’diff’ : Encode as 1 if the time-series difference is positive, and 0 otherwise (default).

  • ’mean’ : Encode as 1 if the value is above the mean, 0 otherwise.

Returns:

Statistics computed on the binary symbolisation.

Return type:

dict