Skip to content

Commit

Permalink
DOC: stats: add a log base note to the docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-br committed Oct 19, 2013
1 parent b7aa678 commit a58cef6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scipy/stats/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,14 @@ def entropy(self, *args, **kwds):
scale : array_like, optional (continuous distributions only).
Scale parameter (default=1).
Notes
-----
Entropy is defined base `e`:
>>> drv = rv_discrete(values=((0, 1), (0.5, 0.5)))
>>> np.allclose(drv.entropy(), np.log(2.0))
True
"""
args, loc, scale = self._parse_args(*args, **kwds)
# NB: for discrete distributions scale=1 by construction in _parse_args
Expand Down

0 comments on commit a58cef6

Please sign in to comment.