| Class | Description |
|---|---|
| Binomial |
Computes binomial(N, K) using Pascal's identity (binomial(n, k) = binomial(n-1, k-1) + binomial(n-1, k))
and dynamic programming.
|
| Combination | |
| Gaussian |
Compilation: javac Gaussian.java
Execution: java Gaussian x mu sigma
Function to compute the Gaussian pdf (probability density function)
and the Gaussian cdf (cumulative density function)
% java Gaussian 820 1019 209
0.17050966869132111
% java Gaussian 1500 1019 209
0.9893164837383883
% java Gaussian 1500 1025 231
0.9801220907365489
The approximation is accurate to absolute error less than 8 * 10^(-16).
|
| Matrix |
A bare-bones immutable data type for M-by-N matrices.
|
| Permutation |
Generates r-permutations of n integers without repetition.
|
| PermutationsWithRepetition |
Generates r-permutations of n with repetition.
|
| PowerSet |