Class Arrays2
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.multisource.clustering.Arrays2
Arrays2
- Version:
- 1.3.1, 11/17/14
- Author:
- Ludo Waltman, Nees Jan van Eck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
calcAverage
(double[] value) static double
calcMaximum
(double[] value) static int
calcMaximum
(int[] value) static double
calcMedian
(double[] value) static double
calcMinimum
(double[] value) static double
calcSum
(double[] value) static double
calcSum
(double[] value, int beginIndex, int endIndex) static int[]
generateRandomPermutation
(int nElements) static int[]
generateRandomPermutation
(int nElements, Random random)
-
Constructor Details
-
Arrays2
Arrays2()
-
-
Method Details
-
calcSum
public static double calcSum(double[] value) -
calcSum
public static double calcSum(double[] value, int beginIndex, int endIndex) -
calcAverage
public static double calcAverage(double[] value) -
calcMedian
public static double calcMedian(double[] value) -
calcMinimum
public static double calcMinimum(double[] value) -
calcMaximum
public static double calcMaximum(double[] value) -
calcMaximum
public static int calcMaximum(int[] value) -
generateRandomPermutation
public static int[] generateRandomPermutation(int nElements) -
generateRandomPermutation
-