mars.tensor.special.beta#

mars.tensor.special.beta(a, b, out=None, **kwargs)[source]#

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.

Parameters
  • a (array-like) – Real-valued arguments

  • b (array-like) – Real-valued arguments

  • out (ndarray, optional) – Optional output array for the function result

Returns

Value of the beta function

Return type

scalar or ndarray

See also

gamma

the gamma function

betainc

the incomplete beta function

betaln

the natural logarithm of the absolute value of the beta function

References

1

NIST Digital Library of Mathematical Functions, Eq. 5.12.1. https://dlmf.nist.gov/5.12