|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.Sorting
public class Sorting
Sorting.
Sorting provides methods for sorting values.
| Constructor Summary | |
|---|---|
Sorting()
|
|
| Method Summary | |
|---|---|
static void |
quickSort(double[] data,
int[] index,
int lo0,
int hi0)
Recursive quicksort that carries along an index array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sorting()
| Method Detail |
|---|
public static void quickSort(double[] data,
int[] index,
int lo0,
int hi0)
data - The data to sort (input and output).index - The index (permutation) vector (output).lo0 - The first element to sort.hi0 - The last element to sort.
On output, data is sorted in ascending order. The index array contains the permuted indices of the sorted elements.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||