Gets the number of ways of picking k
unordered outcomes from n possibilities.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double Combinations(
int n,
int k
)
Public Shared Function Combinations (
n As Integer,
k As Integer
) As Double
public:
static double Combinations(
int n,
int k
)
static member Combinations :
n : int *
k : int -> float
Parameters
- n
- Type: SystemInt32
The number of possibilities. - k
- Type: SystemInt32
The number of outcomes to pick.
Return Value
Type:
DoubleThe number of ways of picking
k
unordered outcomes from
n possibilities.
Reference