public class Binomial extends Object implements 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
|
Copyright © 2015–2021 Fiji. All rights reserved.