how to calcuate the Lower bound and the Upper bound ?

Answers (2)

As your data is the extracted entropy of signals, the minimum possible value is 0 (the signal is a known constant) and the maximum possible value is the maximum allowed length of the signal in bits. (For example if the maximum allowed length of the signal was 25307 bytes then the maximum possible entropy would be 25307*8 = 202456

3 Comments

Entropy cannot be negative. This is the definition of entropy. See https://en.wikipedia.org/wiki/Entropy_%28information_theory%29. In order for entropy to be negative, something would have to have probability greater than 1.
The lower bound of entropy is 0. The upper bound of entropy is number of elements of the signal times the number of bits of information in each element of the signal.
What are min() and max() of your first parameter to wentropy() ? What is your exact wentropy() call?
The file does not appear to be attached

Sign in to comment.

You would get negative shannon entropy if any of your values are greater than 0. For shannon entropy you should be normalizing your signal range to [0,1]

Categories

Find more on Language Fundamentals in Help Center and File Exchange

Tags

No tags entered yet.

Asked:

on 23 Nov 2015

Edited:

on 24 Nov 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!