pyhctsa.operations.entropy.wavelet_entropy¶
-
pyhctsa.operations.entropy.wavelet_entropy(y, wavelet_name=
'sym4', level=5)¶ Wavelet entropy of a time series.
Decomposes
yvia the maximal-overlap discrete wavelet transform (MODWT) intoleveldetail scales plus the remaining smooth (scaling) band, i.e.,level + 1bands, computes each band’s share of the signal’s total energy,p_j = E_j / sum(E), and returns the Shannon entropy of this relative-energy distribution across bands, normalized to [0, 1] by its maximum possible value,log2(level + 1)[1]. Low values mean the energy is concentrated in few bands; high values that it is spread evenly across bands. Port of hctsa’sEN_wentropy; the MODWT uses the filters of PyWavelets.The output is invariant to rescaling
y, and is bounded in [0, 1] (the value 1 is reached when the energy is equal in alllevel + 1bands).levelis fixed by default (rather than left to depend on the series length) because the number of levels sets the normalizing denominator, so letting it grow with the length ofyintroduces a strong length dependence. Withlevelfixed, the value for white noise is independent of length (about 0.75).level = 5needs about 64 samples or more for a non-degenerate decomposition.References