Package pal.math
Class Binomial
java.lang.Object
pal.math.Binomial
- All Implemented Interfaces:
Serializable
Binomial coefficients
- Version:
- $Id: Binomial.java,v 1.6 2001/07/13 14:39:13 korbinian Exp $
- Author:
- Korbinian Strimmer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
choose
(double n, double k) Binomial coefficient n choose kdouble
getNChoose2
(int n) get (precomputed) n choose 2void
setMax
(int max) set capacity and precompute the n choose 2 values
-
Constructor Details
-
Binomial
public Binomial()
-
-
Method Details
-
choose
public double choose(double n, double k) Binomial coefficient n choose k -
getNChoose2
public double getNChoose2(int n) get (precomputed) n choose 2 -
setMax
public void setMax(int max) set capacity and precompute the n choose 2 values
-