|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gersteinlab.regulation.util.Util
public class Util
This class provides some utility functions.
Change History: 1.0 - Initial version
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static void |
coSort(double[] values,
java.lang.Object[] auxValues)
Sort an array of numbers in ascending order, and arrange the entries in a second array accordingly. |
static void |
coSort(double[] values,
java.lang.Object[] auxValues,
boolean ascending)
Sort an array of numbers, and arrange the entries in a second array accordingly. |
static void |
coSort(double[] values,
java.lang.Object[] auxValues,
boolean ascending,
int start,
int end)
Sort a continuous subarray of an array of numbers, and arrange the entries in a second array accordingly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static void coSort(double[] values, java.lang.Object[] auxValues)
values
- The values to be sortedauxValues
- The auxilary values to be ordered accordinglypublic static void coSort(double[] values, java.lang.Object[] auxValues, boolean ascending)
values
- The values to be sortedauxValues
- The auxilary values to be ordered accordinglyascending
- Whether the list is to be sorted in ascending orderpublic static void coSort(double[] values, java.lang.Object[] auxValues, boolean ascending, int start, int end)
values
- The values to be sortedauxValues
- The auxilary values to be ordered accordinglyascending
- Whether the list is to be sorted in ascending orderstart
- The index of the first element in the subarrayend
- The index of the last element in the subarray
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |