public abstract class RandomUtils extends Object
Modifier and Type | Method and Description |
---|---|
static double |
calculateVariance(double aSumOfValues,
double aSumOfSquaredValues,
int aValuesCount) |
static double |
erf(double anArg)
|
static double |
erfc(double anArg)
|
static double |
erfi(double anArg)
|
static double |
factorial(int aVal) |
static double |
gamma(double arg)
Lanczos approximation.
|
static int |
partitions(int n,
int[] k) |
static int |
permutations(int n) |
static int |
subsets(int n,
int k) |
static int |
variations(int n,
int k) |
public static double calculateVariance(double aSumOfValues, double aSumOfSquaredValues, int aValuesCount)
aSumOfValues
- The sum of all values in a sample setaSumOfSquaredValues
- The sum of all squared values, in a sample setaValuesCount
- The number of values in the sample setpublic static double erf(double anArg)
public static double erfc(double anArg)
public static double erfi(double anArg)
public static double factorial(int aVal)
public static double gamma(double arg)
public static int partitions(int n, int[] k)
n
- The number of elements in the setk
- A vector of subset sizes the sum of which must equal the size of the full setpublic static int permutations(int n)
n
- The number of elements in the setpublic static int subsets(int n, int k)
n
- The number of elements in the setk
- The number of elements in the subsetpublic static int variations(int n, int k)
n
- The number of elements in the setk
- The size of the tupleCopyright © 2018 Optimatika. All rights reserved.