mars.tensor.special.betainc¶
- mars.tensor.special.betainc(a, b, x, out=None, **kwargs)[source]¶
Incomplete beta function.
Computes the incomplete beta function, defined as 1:
\[I_x(a, b) = \frac{\Gamma(a+b)}{\Gamma(a)\Gamma(b)} \int_0^x t^{a-1}(1-t)^{b-1}dt,\]for \(0 \leq x \leq 1\).
- Parameters
a (array-like) – Positive, real-valued parameters
b (array-like) – Positive, real-valued parameters
x (array-like) – Real-valued such that \(0 \leq x \leq 1\), the upper limit of integration
out (ndarray, optional) – Optional output array for the function values
- Returns
Value of the incomplete beta function
- Return type
array-like
See also
beta
beta function
betaincinv
inverse of the incomplete beta function
Notes
The incomplete beta function is also sometimes defined without the gamma terms, in which case the above definition is the so-called regularized incomplete beta function. Under this definition, you can get the incomplete beta function by multiplying the result of the SciPy function by beta.
References
- 1
NIST Digital Library of Mathematical Functions https://dlmf.nist.gov/8.17