Special.Multinomial Coefficient Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Multinomial | Returns the number of ways to partition a set into subsets of the specified size. |
Multinomial | Returns the number of ways to partition a set into subsets of the specified size. |
MultinomialCoefficient(Int32[])
Returns the number of ways to partition a set into subsets of the
specified size.
public static double MultinomialCoefficient(
params int[] size
)
Parameters
- size Int32[]
- A list or array of integers specifying the size of the subsets.
Return Value
DoubleThe requested multinomial coefficient.
Remarks
The multinomial coefficient gives the total number of ways to partition a set of n numbers into sets of nk elements, where n is the sum of the nk.
MultinomialCoefficient(ReadOnlySpan<Int32>)
Returns the number of ways to partition a set into subsets of the
specified size.
public static double MultinomialCoefficient(
ReadOnlySpan<int> size
)
Parameters
- size ReadOnlySpan<Int32>
- A list or array of integers specifying the size of the subsets.
Return Value
DoubleThe requested multinomial coefficient.
Remarks
The multinomial coefficient gives the total number of ways to partition a set of n numbers into sets of nk elements, where n is the sum of the nk.