|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ProGAL.math.Combinatorics
public class Combinatorics
A wrapper for static combinatorial helper functions.
Constructor Summary | |
---|---|
Combinatorics()
|
Method Summary | |
---|---|
static int |
binom(int n,
int m)
Calculate the binomial coefficient. |
static java.util.List<int[]> |
getAllPermutations(int max)
Generates all permutations of integers from 0 (inclusive) to max (exclusive). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Combinatorics()
Method Detail |
---|
public static java.util.List<int[]> getAllPermutations(int max)
max
- the length of each permutation
public static int binom(int n, int m)
n
- a number larger than or equal 0k
- a number larger than or equal 0 but smaller than or equal n
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |