Skip to content

Commit f64e2da

Browse files
authored
Merge pull request numpy#27369 from ScoobyP/new_pmf_branch
DOC: fix incorrect definitions
2 parents 025a270 + 4e81317 commit f64e2da

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

numpy/random/_generator.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3282,7 +3282,7 @@ cdef class Generator:
32823282
32833283
Notes
32843284
-----
3285-
The Poisson distribution
3285+
The probability mass function (PMF) of Poisson distribution is
32863286
32873287
.. math:: f(k; \\lambda)=\\frac{\\lambda^k e^{-\\lambda}}{k!}
32883288
@@ -3372,7 +3372,7 @@ cdef class Generator:
33723372
33733373
Notes
33743374
-----
3375-
The probability density for the Zipf distribution is
3375+
The probability mass function (PMF) for the Zipf distribution is
33763376
33773377
.. math:: p(k) = \\frac{k^{-a}}{\\zeta(a)},
33783378
@@ -3537,7 +3537,7 @@ cdef class Generator:
35373537
35383538
Notes
35393539
-----
3540-
The probability density for the Hypergeometric distribution is
3540+
The probability mass function (PMF) for the Hypergeometric distribution is
35413541
35423542
.. math:: P(x) = \\frac{\\binom{g}{x}\\binom{b}{n-x}}{\\binom{g+b}{n}},
35433543

numpy/random/mtrand.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3656,7 +3656,7 @@ cdef class RandomState:
36563656
36573657
Notes
36583658
-----
3659-
The Poisson distribution
3659+
The probability mass function (PMF) of Poisson distribution is
36603660
36613661
.. math:: f(k; \\lambda)=\\frac{\\lambda^k e^{-\\lambda}}{k!}
36623662
@@ -3744,7 +3744,7 @@ cdef class RandomState:
37443744
37453745
Notes
37463746
-----
3747-
The probability density for the Zipf distribution is
3747+
The probability mass function (PMF) for the Zipf distribution is
37483748
37493749
.. math:: p(k) = \\frac{k^{-a}}{\\zeta(a)},
37503750
@@ -3908,7 +3908,7 @@ cdef class RandomState:
39083908
39093909
Notes
39103910
-----
3911-
The probability density for the Hypergeometric distribution is
3911+
The probability mass function (PMF) for the Hypergeometric distribution is
39123912
39133913
.. math:: P(x) = \\frac{\\binom{g}{x}\\binom{b}{n-x}}{\\binom{g+b}{n}},
39143914

0 commit comments

Comments
 (0)