public final class Combinatorics extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
binomialCoefficient(int n,
int k)
Combinatorics coefficient (n choose k).
|
public static double binomialCoefficient(int n,
int k)
n - The number of objects in the set.k - The subset of objects to be chosen.