Skip to content

Commit

Permalink
Update docstring of NegativeBinomial (#1734)
Browse files Browse the repository at this point in the history
Remove note about different notation in Wikipedia (no longer true).
  • Loading branch information
heliosdrm authored Sep 3, 2023
1 parent d04db64 commit 2cd6c67
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/univariate/discrete/negativebinomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ failprob(d) # Get the failure rate, i.e. 1 - p
External links:
* [Negative binomial distribution on Wolfram](https://reference.wolfram.com/language/ref/NegativeBinomialDistribution.html)
Note: The definition of the negative binomial distribution in Wolfram is different from the [Wikipedia definition](http://en.wikipedia.org/wiki/Negative_binomial_distribution). In Wikipedia, `r` is the number of failures and `k` is the number of successes.
"""
struct NegativeBinomial{T<:Real} <: DiscreteUnivariateDistribution
r::T
Expand Down

0 comments on commit 2cd6c67

Please sign in to comment.