CombinatoricsCombinationsWithRepetition Method |
Count the number of possible combinations with repetition.
The order does not matter and an object can be chosen more than once.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double CombinationsWithRepetition(
int n,
int k
)
Parameters
- n Int32
- Number of elements in the set.
- k Int32
- Number of elements to choose from the set. Each element is chosen 0, 1 or multiple times.
Return Value
DoubleMaximum number of combinations with repetition.
See Also