[SciPy-dev] [PATCH] scipy.stats.entropy documentation should mention log base
Luis Pedro Coelho
lpc at cmu.edu
Sun Mar 2 15:12:15 EST 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://mail.python.org/pipermail/scipy-dev/attachments/20080302/aea74d97/attachment.patch>
More information about the SciPy-Dev
mailing list