Class QuickSortAlgorithmObjects


  • public class QuickSortAlgorithmObjects
    extends Object
    Sorting of a double array with an array of objects following.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Constructor Detail

      • QuickSortAlgorithmObjects

        public QuickSortAlgorithmObjects​(IHMProgressMonitor monitor)
    • Method Detail

      • sort

        public void sort​(double[] values,
                         Object[] valuesToFollow)
        Sorts an array of values and moves with the sort a second array.
        Parameters:
        values - the array to sort.
        valuesToFollow - the array that should be sorted following the indexes of the first array. Can be null.