pyhctsa.operations.entropy.shannon_entropy¶
-
pyhctsa.operations.entropy.shannon_entropy(y, num_bins=
2, depth=3)¶ Approximate Shannon entropy of a time series.
Uses a num_bins-bin encoding and depth-symbol sequences. Uniform population binning is used, and the implementation uses Michael Small’s code MS_shannon.c.
In this wrapper function, you can evaluate the code at a given n and d, and also across a range of depth and num_bins to return statistics on how the obtained entropies change.
References