@TestClass(value="org.openscience.cdk.math.MathToolsTest") public class MathTools extends Object
Constructor and Description |
---|
MathTools() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEven(int intValue) |
static boolean |
isOdd(int intValue) |
static double |
max(double[] values)
Analog of Math.max that returns the largest double value in an array of dpubles.
|
static int |
max(int[] values)
Analog of Math.max that returns the largest int value in an array of ints
|
static double |
min(double[] values)
Analog of Math.min that returns the largest double value in an array of double.
|
static int |
min(int[] values)
Analog of Math.max that returns the largest int value in an array of ints
|
@TestMethod(value="testMax_arraydouble") public static double max(double[] values)
values
- the values to be searched for the largest value among them@TestMethod(value="testMin_arraydouble") public static double min(double[] values)
values
- the values to be searched for the smallest value among them@TestMethod(value="testMax_arrayint") public static int max(int[] values)
@TestMethod(value="testMin_arrayint") public static int min(int[] values)
@TestMethod(value="testIsOdd_int") public static boolean isOdd(int intValue)
@TestMethod(value="testIsEven_int") public static boolean isEven(int intValue)