public class Combinatorics
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double |
binomialCoefficient(int n,
int k)
Computes the binomial coefficient.
|
static int |
faculty(int x)
Computes the faculty of an integer.
|
public static double binomialCoefficient(int n, int k)
n
- the number of data pointsk
- the number of categoriespublic static int faculty(int x)
x
-