/*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
{
return Float.compare(values[o1], values[o2]);
}
-
+
}
static class IntComparator implements Comparator<Integer>
nextZeroValue++;
}
}
-
+
/*
* Copy zero values back to original arrays
*/
System.arraycopy(f1, 0, arr, 0, nextZeroValue);
System.arraycopy(s1, 0, s, 0, nextZeroValue);
-
+
if (nextZeroValue == arr.length)
{
return; // all zero
/*
* Sort the non-zero values
*/
- int[] nonZeroInts = Arrays
- .copyOfRange(f1, nextZeroValue, f1.length);
+ int[] nonZeroInts = Arrays.copyOfRange(f1, nextZeroValue, f1.length);
char[] nonZeroChars = Arrays.copyOfRange(s1, nextZeroValue, s1.length);
externalSort(nonZeroInts, nonZeroChars);
// sort(nonZeroFloats, 0, nonZeroFloats.length - 1, nonZeroChars);
-
+
/*
* Assemble sorted non-zero results
*/