|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pal.math.Binomial
Binomial coefficients
Constructor Summary | |
Binomial()
|
Method Summary | |
double |
choose(double n,
double k)
Binomial coefficient n choose k |
double |
getNChoose2(int n)
get (precomputed) n choose 2 |
void |
setMax(int max)
set capacity and precompute the n choose 2 values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Binomial()
Method Detail |
public double choose(double n, double k)
public double getNChoose2(int n)
public void setMax(int max)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |