|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lima.mathematical.utilities.Combinatorial
A class to provide combinatorial integer arithmetic
| Constructor Summary | |
Combinatorial()
|
|
| Method Summary | |
static int |
combination(int n,
int p)
Calulation the ways of choosing p objects from n objects |
static long |
factorial(int n)
Calculate the factorial of an integer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Combinatorial()
| Method Detail |
public static long factorial(int n)
n - - the integer who's factorial is returned
public static int combination(int n,
int p)
n - - the size of the set we are choosing object fromp - - the number of elements we wish to choose
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||