Package jebl.math

Class Binomial


  • public class Binomial
    extends java.lang.Object
    Binomial coefficients
    Version:
    $Id: Binomial.java 305 2006-04-26 00:22:30Z rambaut $
    Author:
    Andrew Rambaut, Alexei Drummond, Korbinian Strimmer
    • Constructor Summary

      Constructors 
      Constructor Description
      Binomial()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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

        equals, 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