View source: R/betafunctions.R
gchoose | R Documentation |
Extends the Binomial coefficient for positive non-integers (including 0) by employing the Gamma rather than the factorial function.
gchoose(n, k)
n |
In Binomial terms, the number of Binomial "trials". Need not be an integer. |
k |
In Binomial terms, the number of successful "trials". Need not be an integer. |
Not defined for negative integers.
Loeb, D. E. (1992). A generalization of the binomial coefficients. Discrete Mathematics, 105(1-3).
# Compare choose function with gchoose function for integers:
gchoose(c(8, 9, 10), c(3, 4, 5)) == choose(c(8, 9, 10), c(3, 4, 5))
# The gchoose function also works for non-integers:
gchoose(10.5, 7.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.