Package ubic.basecode.math
Class MathUtil
- java.lang.Object
-
- ubic.basecode.math.MathUtil
-
public class MathUtil extends Object
- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description MathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]
fillRange(int a, int b)
Create an array filled with the integer values from a to b, inclusive.static double
max(double[] qvaluethresholdsforhitlists)
static int
sumArray(int[] array)
-
-
-
Method Detail
-
fillRange
public static int[] fillRange(int a, int b)
Create an array filled with the integer values from a to b, inclusive. Works if ab or a==b.- Parameters:
a
-b
-- Returns:
-
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.
-
-