Package org.terrier.sorting
Class SortAscendingPairedVectors
- java.lang.Object
-
- org.terrier.sorting.SortAscendingPairedVectors
-
public class SortAscendingPairedVectors extends java.lang.Object
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.- Author:
- Gianni Amati, Vassilis Plachouras
-
-
Constructor Summary
Constructors Constructor Description SortAscendingPairedVectors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sort(int[] a, int[] u)
Sorts the two vectors with respect to the ascending order of the first one.
-