public class MathUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
MathUtils()
A private constructor since this class should never be instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
gaussianWindow(double mean1,
double mean2,
double std)
Evaluate a Gaussian window function with the given mean range and standard deviation.
|
static int |
getGCF(int a,
int b)
Get the greatest common factor of two integers.
|
static int |
getMaxIndex(double[] array)
Get the index of the first occurrence of the maximum value in the given array.
|
private MathUtils()
public static double gaussianWindow(double mean1,
double mean2,
double std)
mean1 - The low end of the mean range.mean2 - The high end of the mean range.std - The standard deviation.public static int getMaxIndex(double[] array)
array - The array whose max we will find.Double.NEGATIVE_INFINITY or the array has length 0.public static int getGCF(int a,
int b)
a - The first integer.b - The second integer.