[SciPy-dev] [PATCH] scipy.stats.entropy documentation should mention log base

Luis Pedro Coelho lpc@cmu....
Sun Mar 2 14:12:15 CST 2008


Hello,

It took me a while to figure out that stats.entropy does it logarithms base e. 
I expected it to work base 2 (from where I'm coming from, that's the 
traditional definition of entropy, but maybe other communities have other 
expectations).

The attached patch adds a sentence to the documentation to that effect. It 
also adds an entropy2() function which works base 2.

regards,
--
Luís Pedro Coelho
PhD Student in Computational Biology, CMU
http://www.luispedro.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: entropy.patch
Type: text/x-diff
Size: 1464 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20080302/aea74d97/attachment.bin 


More information about the Scipy-dev mailing list