Maple includes a useful StringTools:-Entropy procedure which computes the Shannon Entropy, or Information Entropy of a string.  Wikipedia has a nice article describing the measure online at http://en.wikipedia.org/wiki/Shannon_entropy.  I wanted to compute this value over a Matrix so I wrote the following procedure.  Let me know if you have any comments or improvements on the implementation.

View 8408_ShannonEntropy.mw on MapleNet or Download 8408_ShannonEntropy.mw
View file details


Please Wait...