Skip to content

Commit

Permalink
Merge pull request #215 from nokfi/ticket1651
Browse files Browse the repository at this point in the history
DOC: clarified some documentation related to ticket 1651
  • Loading branch information
rgommers committed May 20, 2012
2 parents e2fedcb + 5dc46f5 commit 1daab3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scipy/stats/distributions.py
Expand Up @@ -227,6 +227,8 @@ def instancemethod(func, obj, cls):
>>> x = np.linspace(0, np.minimum(rv.dist.b, 3))
>>> h = plt.plot(x, rv.pdf(x))
Here, ``rv.dist.b`` is the right endpoint of the support of ``rv.dist``.
Check accuracy of cdf and ppf
>>> prb = %(name)s.cdf(x, %(shapes)s)
Expand Down Expand Up @@ -319,6 +321,8 @@ def instancemethod(func, obj, cls):
>>> x = np.arange(0, np.minimum(rv.dist.b, 3))
>>> h = plt.vlines(x, 0, rv.pmf(x), lw=2)
Here, ``rv.dist.b`` is the right endpoint of the support of ``rv.dist``.
Check accuracy of cdf and ppf
>>> prb = %(name)s.cdf(x, %(shapes)s)
Expand Down Expand Up @@ -5644,6 +5648,8 @@ def _pmf(self, k, mu):
>>> x = np.arange(0, np.min(rv.dist.b, 3)+1)
>>> h = plt.plot(x, rv.pmf(x))
Here, ``rv.dist.b`` is the right endpoint of the support of ``rv.dist``.
Check accuracy of cdf and ppf:
>>> prb = generic.cdf(x, <shape(s)>)
Expand Down

0 comments on commit 1daab3c

Please sign in to comment.