entropy function

Spectral entropy of a time series