mars.tensor.special.beta#
- mars.tensor.special.beta(a, b, out=None, **kwargs)[源代码]#
Beta function.
This function is defined in 1 as
\[B(a, b) = \int_0^1 t^{a-1}(1-t)^{b-1}dt = \frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)},\]where \(\Gamma\) is the gamma function.
- 参数
a (array-like) – Real-valued arguments
b (array-like) – Real-valued arguments
out (ndarray, optional) – Optional output array for the function result
- 返回
Value of the beta function
- 返回类型
scalar or ndarray
参见
引用
- 1
NIST Digital Library of Mathematical Functions, Eq. 5.12.1. https://dlmf.nist.gov/5.12