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  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 on MapleNet or Download
View file details

Please Wait...