Class MathUtil
java.lang.Object
ubic.gemma.core.util.math.MathUtil
Small numeric helpers.
Pulled in-tree from baseCode ubic.basecode.math.MathUtil as part of
the baseCode math pilot retirement (see BASECODE_DEP_AUDIT.md).
- Author:
- pavlidis
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MathUtil
public MathUtil()
-
-
Method Details
-
fillRange
public static int[] fillRange(int a, int b) Create an array filled with the integer values from a to b, inclusive. Works if a<b, a>b or a==b.- Parameters:
a- start (inclusive)b- end (inclusive)- Returns:
- integer range
-
max
public static double max(double[] qvaluethresholdsforhitlists) -
sumArray
public static int sumArray(int[] array) - Parameters:
array- of integers- Returns:
- The sum of the values in the array.
-