Click or drag to resize

AdvancedMathBeta Method (Double, Double, Double)

Computes the incomplete Beta function.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
public static double Beta(
	double a,
	double b,
	double x


Type: SystemDouble
The left shape parameter, which must be non-negative.
Type: SystemDouble
The right shape parameter, which must be non-negative.
Type: SystemDouble
The integral endpoint, which must lie in [0,1].

Return Value

Type: Double
The value of Bx(a, b).
ArgumentOutOfRangeExceptiona or b is negative, or x lies outside [0, 1].

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.

See Also