Package PamView.chart

Class PairedSort

java.lang.Object
PamView.chart.PairedSort

public class PairedSort extends Object
functions for sorting paired arrays, i.e. order the first array and then move second array around so that it still matches the first array.
Author:
dg50
  • Constructor Details

    • PairedSort

      public PairedSort()
  • Method Details

    • sortPairedArray

      public static double[][] sortPairedArray(double[][] array)
      sort a 2d array by the content of it's first element
      Parameters:
      array - d2 array to sort.
      Returns:
      a new array. Old content not overwritten
    • getSortIndexes

      public static int[] getSortIndexes(double[] array)