jebl.math
Class Binomial
java.lang.Object
jebl.math.Binomial
public class Binomial
- extends Object
Binomial coefficients
- Author:
- Andrew Rambaut, Alexei Drummond, Korbinian Strimmer
Method Summary |
static double |
choose(double n,
double k)
Binomial coefficient n choose k |
static double |
choose2(int n)
get n choose 2 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Binomial
public Binomial()
choose
public static double choose(double n,
double k)
- Binomial coefficient n choose k
choose2
public static double choose2(int n)
- get n choose 2