public class MathTools extends Object
| Constructor and Description |
|---|
MathTools() |
| Modifier and Type | Method and Description |
|---|---|
static Pair<Double,Double> |
averageAndVariance(Collection<Double> values)
Compute the average value and the variance of the given list of
numbers.
|
static Integer |
binomial(Integer n,
Integer k)
This method computes "n choose k".
|
static int |
faculty(int i)
Computes the faculty of the given number.
|
public static Integer binomial(Integer n, Integer k)
n - an integer.k - an integerpublic static int faculty(int i)
i - an integer.public static Pair<Double,Double> averageAndVariance(Collection<Double> values)
values - some valuesCopyright © 2018. All rights reserved.