AdvancedMathBeta(Double, Double, Double) Method

Computes the incomplete Beta function.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double Beta(
	double a,
	double b,
	double x
)

Parameters

a  Double
The left shape parameter, which must be non-negative.
b  Double
The right shape parameter, which must be non-negative.
x  Double
The integral endpoint, which must lie in [0,1].

Return Value

Double
The value of Bx(a, b).

Remarks

This function is defined by the same integral that defines the Beta function (Beta(Double, Double), but with the integral taken from 0 to x instead of from 0 to 1.

Note that in most mathematical literature, x is regarded as the first argument. We, however, follow the programming convention that optional arguments follow required ones, so x is the last argument of the method.

If you require the regularized function, use LeftRegularizedBeta(Double, Double, Double) to obtain it directly.

Exceptions

ArgumentOutOfRangeExceptiona or b is negative, or x lies outside [0, 1].

See Also