public class AggDesUtil extends BitSet
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
cast(List<?> list)
Casts a List to a List with a different element type.
|
static BigInteger |
countCombinations(int n,
int k)
Computes the
Binomial
coefficient.
|
and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, previousClearBit, previousSetBit, set, set, set, set, size, toByteArray, toLongArray, toString, valueOf, valueOf, valueOf, valueOf, xorpublic static BigInteger countCombinations(int n, int k)
Informally, if there are n pizza toppings then the binomial
coefficient C(n, k) gives the number of ways to create a pizza
that has k toppings.
n - Nk - RCopyright © 2006–2016 Julian Hyde. All rights reserved.