Click or drag to resize

SpecialFunctionsBinomialCoefficient Method

Computes the Binomial coefficient of the specified pair of integers.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public static double BinomialCoefficient(
	int n,
	int k
)

Parameters

n
Type: SystemInt32
The number of available items.
k
Type: SystemInt32
The number of items to be taken at a time.

Return Value

Type: Double
The value taken on by the Binomial coefficient.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionn is negative.
-or-
k is negative.
-or-
k is greater than n.
Remarks
This is the number of combinations of n items taken k at a time.
See Also