For Spectral Entropy the steps are:
- Compute the Power Spectral Density(PSD)
- Normalize the PSD
Calculate the Entropy
−∑(P)log2(P)
, where P = PSDP=sum(abs(fft(data-window)).^2) %Normalization d=P(:); d=d/sum(d+ 1e-12); %Entropy Calculation logd = log2(d + 1e-12); Entropy(inc) = -sum(d.*logd)/log2(length(d));