I have a probability distribution that determines the probability of occurrence of npossible states.
I would like to calculate the value of the Shannon entropy in bits of a given probability distribution.
Can I use wentropy(x,'shannon')to get the value, and if so, where can I determine the number of possible states that the system has?
source
share