org.terrier.sorting
Class SortAscendingQuadrupleVectors

java.lang.Object
  extended by org.terrier.sorting.SortAscendingQuadrupleVectors

public class SortAscendingQuadrupleVectors
extends java.lang.Object

This class sorts four arrays, where the corresponding entries are related. The result is that the first array is sorted in ascending order, and the rest are transformed in a way that the corresponding entries are in the correct places

Author:
Douglas Johnson

Constructor Summary
SortAscendingQuadrupleVectors()
           
 
Method Summary
static void sort(int[] a, int[] u, int[] e, int[] o)
          Sorts the four 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

SortAscendingQuadrupleVectors

public SortAscendingQuadrupleVectors()
Method Detail

sort

public static void sort(int[] a,
                        int[] u,
                        int[] e,
                        int[] o)
Sorts the four vectors with respect to the ascending order of the first one.

Parameters:
a - the first vector to sort.
u - the second vector to sort.
e - the third vector to sort.
o - the fourth vector to sort.


Terrier 3.5. Copyright © 2004-2011 University of Glasgow