public class Binomial
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Binomial() |
Modifier and Type | Method and Description |
---|---|
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
|