|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.sorting.SortAscendingPairedVectors
public class SortAscendingPairedVectors
This class sorts a pair of arrays, where the corresponding entries are related. The result is that the first array is sorted in ascending order, and the second is transformed in a way that the corresponding entries are in the correct places.
| Constructor Summary | |
|---|---|
SortAscendingPairedVectors()
|
|
| Method Summary | |
|---|---|
static void |
sort(int[] a,
int[] u)
Sorts the two vectors with respect to the ascending order of the first one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortAscendingPairedVectors()
| Method Detail |
|---|
public static void sort(int[] a,
int[] u)
a - the first vector to sort.u - the second vector to sort.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||