CombinatoricsBinomialCoefficient Method |
Combinatorics coefficient (n choose k). The number of ways k objects can be chosen from a set of n objects.
Namespace:
AGI.Foundation.NumericalMethods.Advanced
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public static double BinomialCoefficient(
int n,
int k
)
Public Shared Function BinomialCoefficient (
n As Integer,
k As Integer
) As Double
public:
static double BinomialCoefficient(
int n,
int k
)
static member BinomialCoefficient :
n : int *
k : int -> float
Parameters
- n
- Type: SystemInt32
The number of objects in the set. - k
- Type: SystemInt32
The subset of objects to be chosen.
Return Value
Type:
DoubleThe binomial coefficient.
See Also