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 Link icon

    • PairedSort Link icon

      public PairedSort()
  • Method Details Link icon

    • sortPairedArray Link icon

      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 Link icon

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