pyhctsa.operations.symbolic.coarse_grain

pyhctsa.operations.symbolic.coarse_grain(y, how_to_cg, num_groups)

Coarse-grains a continuous time series to a discrete alphabet.

Parameters:
y : array-like

The input time series.

how_to_cg : str

The method of coarse-graining. Options:

  • ’updown’

  • ’quantile’

  • ’embed2quadrants’

  • ’embed2octants’

num_groups : int

Specifies the size of the alphabet for ‘quantile’ and ‘updown’, or sets the time delay for the embedding subroutines.

Returns:

yth – The coarse-grained time series.

Return type:

array-like