jebl.math
Class Binomial

java.lang.Object
  extended by jebl.math.Binomial

public class Binomial
extends Object

Binomial coefficients

Author:
Andrew Rambaut, Alexei Drummond, Korbinian Strimmer

Constructor Summary
Binomial()
           
 
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
 

Constructor Detail

Binomial

public Binomial()
Method Detail

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