|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.graphbuilder.math.PascalsTriangle
PascalsTriangle can be used for O(1) lookup of the nCr function.
Method Summary | |
static double |
nCr(int n,
int r)
The nCr function returns the number of ways r things can be chosen from a set of size n. |
static void |
reset()
Resets the internal array to the initial state to free up memory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static double nCr(int n, int r)
public static void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |