Probabilities::Beta Function

double Beta(double x, double y);

Beta function B.

#NameTypeDescription
1xdoublex in the Beta function definition; real.
2ydoubley in the Beta function definition; real.

Returns: beta function B for given parameters x and y.

Remarks:

The (complete) Euler beta function is defined by:

B(x,y)=integral _0^1 t^(x-1)(1-t)^(y-1) dt = (Gamma(x) Gamma(y))/(Gamma(x+y)) .

Domain: x, y real, neither a non-positive integer (poles of the Gamma function). Defined behavior: computed as sgn*exp(lnGamma(x)+lnGamma(y)-lnGamma(x+y)),
carrying the combined sign of the three Gamma factors; the function is symmetric, B(x,y)=B(y,x)B(x,y)=B(y,x). When lnGamma(x+y) overflows the result is 0; when lnGamma(x) or lnGamma(y) overflows the result saturates to the signed maximum value.

See Also: IGamma
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler