Permalink
Browse files

DOC: clarified some documentation related to ticket1651

  • Loading branch information...
1 parent 56971c5 commit 5dc46f518db66503641731cff0cbb6903b2e56b2 @nokfi nokfi committed May 17, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 scipy/stats/distributions.py
View
6 scipy/stats/distributions.py
@@ -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)
@@ -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)
@@ -5628,6 +5632,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)>)

0 comments on commit 5dc46f5

Please sign in to comment.