Special.MultinomialCoefficient Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

MultinomialCoefficient(Int32[]) Returns the number of ways to partition a set into subsets of the specified size.
MultinomialCoefficient(ReadOnlySpan<Int32>) 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.
C#
public static double MultinomialCoefficient(
	params int[] size
)

Parameters

size  Int32[]
A list or array of integers specifying the size of the subsets.

Return Value

Double
The 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.
C#
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

Double
The 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.

See Also